Pass on the default target triple of the host clang to the LLVM builds within the build_symbolizer.sh script.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
For background: We had failing builds because the host clang was configured for a default triple of x86_64-redhat-linux-gnu but the symbolizer build using x86_64-unknown-linux-gnu. I suspect this started failing in combination with the new LLVM_ENABLE_PER_TARGET_RUNTIME_DIR default in LLVM expecting libcxx headers and libraries in a subdirectory matching the target triple.
Comment Actions
@vitalybuka told me that zorg/buildbot/builders/sanitizers/buildbot_cmake.sh uses build_symbolizer.sh.
Comment Actions
BTW: build_symbolizer.sh uses the long obsoleted PROJECTS="-DLLVM_ENABLE_PROJECTS='libcxx;libcxxabi'". We need to migrate to LLVM_ENABLE_RUNTIMES at some point. LLVM_ENABLE_RUNTIMES automatically uses the LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on file hierarchy.