[PATCH] D47799: [COFF] add /errorrepro to save reproducer on error

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 6 12:27:31 PDT 2018


pcc added a comment.

Here is the args.gn I was using. It's basically the same as the bot:

  is_clang = true
  is_component_build = false
  is_debug = false
  is_official_build = true
  symbol_level = 2
  use_lld = true
  use_thin_lto = true

I also had a local patch to chrome to get it to use my hacked lld:

  diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn
  index 4d9d1f45f870..8e4a30b223ba 100644
  --- a/build/toolchain/win/BUILD.gn
  +++ b/build/toolchain/win/BUILD.gn
  @@ -109,7 +109,7 @@ template("msvc_toolchain") {
         # lld-link includes a replacement for lib.exe that can produce thin
         # archives and understands bitcode (for lto builds).
         lib = "$prefix/$lld_link /lib /llvmlibthin"
  -      link = "$prefix/$lld_link"
  +      link = "C:/src/l/ra/bin/lld-link.exe"
         if (host_os != "win") {
           # See comment adding --rsp-quoting to $cl above for more information.
           link = "$link --rsp-quoting=posix"

I built it with this batch file:

  for /l %%x in (1, 1, 100) do (
    mkdir llvm_exp%%x
    cd llvm_exp%%x
    copy ..\args.gn .
    gn gen .
    ninja all > ninja.out
    cd ..
  )


https://reviews.llvm.org/D47799





More information about the llvm-commits mailing list