Go to file
Rui Ueyama aa00e96a84 ELF: Make --reproduce to produce a response file.
The aim of this patch is to make it easy to re-run the command without
updating paths in the command line. Here is a use case.

Assume that Alice is having an issue with lld and is reporting the issue
to developer Bob. Alice's current directly is /home/alice/work and her
command line is "ld.lld -o foo foo.o ../bar.o". She adds "--reproduce repro"
to the command line and re-run. Then the following text will be produced as
response.txt (notice that the paths are rewritten so that they are
relative to /home/alice/work/repro.)

  -o home/alice/work/foo home/alice/work/foo.o home/alice/bar.o

The command also produces the following files by copying inputs.

  /home/alice/repro/home/alice/work/foo.o
  /home/alice/repro/home/alice/bar.o

Alice zips the directory and send it to Bob. Bob get an archive from Alice
and extract it to his home directory as /home/bob/repro. Now his directory
have the following files.

  /home/bob/repro/response.txt
  /home/bob/repro/home/alice/work/foo.o
  /home/bob/repro/home/alice/bar.o

Bob then re-run the command with these files by the following commands.

  cd /home/bob/repro
  ld.lld @response.txt

This command will run the linker with the same command line options and
the same input files as Alice's, so it is very likely that Bob will see
the same issue as Alice saw.

Differential Revision: http://reviews.llvm.org/D19737

llvm-svn: 268169
2016-04-30 21:40:04 +00:00
clang python: add bindings for children of diagnostics 2016-04-30 21:14:01 +00:00
clang-tools-extra [Release Notes] Mention Clang-tidy cert-err34-c check. 2016-04-30 00:11:10 +00:00
compiler-rt [ASan] Add shadow offset for SystemZ. 2016-04-30 10:02:12 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc prepare-builtins: Remove call to getGlobalContext() 2016-04-15 14:18:58 +00:00
libcxx Replace one more occurrence of non-standard std:launch::any. Patch from STL@microsoft.com 2016-04-30 02:30:18 +00:00
libcxxabi Enable testing for static libc++abi 2016-04-19 12:47:38 +00:00
libunwind unwind: remove last instance of -Wexpansion-to-defined 2016-04-26 01:11:29 +00:00
lld ELF: Make --reproduce to produce a response file. 2016-04-30 21:40:04 +00:00
lldb Fix TestEnumTypes.py for 32 bit platforms. 2016-04-29 23:34:44 +00:00
llgo [llgo] llgoi: separate evaluation from printing 2016-04-25 01:18:20 +00:00
llvm [lit] Add %:[STpst] to represent paths without colons on Windows. 2016-04-30 21:32:12 +00:00
openmp Remove architecture dependent Hwloc DEBUG section 2016-04-25 21:11:26 +00:00
polly doc: A source code with Polly does not use a separate module (by default) 2016-04-29 12:35:46 +00:00