• Nico Weber's avatar
    Set use_lld = false in nacl toolchains and reland "Let lld emit colored... · 979ca1f9
    Nico Weber authored
    Set use_lld = false in nacl toolchains and reland "Let lld emit colored diagnostics when invoked from ninja."
    
    This reverts commit 18da5f23.
    
    Reason for revert: The original commit broke the CFI bot with errors like:
    
      src/native_client/toolchain/linux_x86/pnacl_newlib/bin/../x86_64-nacl/bin/ld:
          unrecognized option '--color-diagnostics'
    
    I do not know why this only happened on the CFI bot (XXX), but since we only add
    -fuse-ld=lld if !is_nacl, we should set use_lld to false in the nacl toolchains,
    which fixes this, and probably many future issues like it.
    
    Original change's description:
    > Revert "Let lld emit colored diagnostics when invoked from ninja."
    >
    > This reverts commit 00db3ddc.
    >
    > Reason for revert: Breaks Linux CFI build here: https://ci.chromium.org/buildbot/chromium.memory/Linux%20CFI/8024
    >
    > Original change's description:
    > > Let lld emit colored diagnostics when invoked from ninja.
    > >
    > > Bug: 841221
    > > Change-Id: I72d13c78a2c623865a4f29542d25f6b3488b350b
    > > Reviewed-on: https://chromium-review.googlesource.com/1067460
    > > Reviewed-by: Reid Kleckner <rnk@chromium.org>
    > > Commit-Queue: Nico Weber <thakis@chromium.org>
    > > Cr-Commit-Position: refs/heads/master@{#560343}
    >
    > TBR=thakis@chromium.org,rnk@chromium.org
    >
    > Change-Id: I3811083daa622dca605ca32be5cc4c7098b60b4a
    > No-Presubmit: true
    > No-Tree-Checks: true
    > No-Try: true
    > Bug: 841221
    > Reviewed-on: https://chromium-review.googlesource.com/1067949
    > Reviewed-by: Tommy Li <tommycli@chromium.org>
    > Commit-Queue: Tommy Li <tommycli@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#560345}
    
    TBR=thakis@chromium.org,rnk@chromium.org,tommycli@chromium.org
    
    Change-Id: I5d4c9298e3613ab84650f081a59715880d780805
    Bug: 841221
    Reviewed-on: https://chromium-review.googlesource.com/1068218
    Commit-Queue: Reid Kleckner <rnk@chromium.org>
    Reviewed-by: default avatarReid Kleckner <rnk@chromium.org>
    Reviewed-by: default avatarNico Weber <thakis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#560676}
    979ca1f9
BUILD.gn 75.2 KB