Bug 1812974 - Remove cctools dependency for clang toolchains. r=firefox-build-system-reviewers,ahochheiden

The non-raw clang toolchains do still need cctools for lipo when
aggregating the compiler-rts.

Differential Revision: https://phabricator.services.mozilla.com/D168034
This commit is contained in:
Mike Hommey
2023-02-01 15:09:39 +00:00
parent 246363b9d5
commit 6fa9186950
3 changed files with 4 additions and 7 deletions

View File

@@ -661,7 +661,11 @@ def main():
extra_cflags2 = []
extra_cxxflags2 = []
extra_asmflags = []
# It's unfortunately required to specify the linker used here because
# the linker flags are used in LLVM's configure step before
# -DLLVM_ENABLE_LLD is actually processed.
extra_ldflags = [
"-fuse-ld=lld",
"-Wl,-dead_strip",
]
elif is_linux(target):