Open
Description
I'm trying to do release builds on the x86_64 MacOS GitHub runners, and the stage2 compiler-rt build is failing with errors like:
fatal error: /Applications/Xcode_15.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /var/folders/80/7d6cd1d13n9by5z92zm5q2mr0000gn/T/lsan_common-429870/lsan_common-x86_64.out and /var/folders/80/7d6cd1d13n9by5z92zm5q2mr0000gn/T/lsan_common-f0ff7a/lsan_common-x86_64h.out have the same architectures (x86_64) and can't be in the same fat output file
The full log can be found here.
I am able to work around this by passing the following CMake options:
-DBOOTSTRAP_COMPILER_RT_ENABLE_IOS=OFF
-DBOOTSTRAP_DARWIN_osx_ARCHS=x86_64
-DBOOTSTRAP_DARWIN_osx_BUILTIN_ARCHS=x86_64
How to Reproduce
cmake -G Ninja -S llvm -B build \
-DLLVM_RELEASE_ENABLE_PGO=OFF
-DLLVM_RELEASE_ENABLE_PROJECTS="clang;lld;lldb;clang-tools-extra;bolt;polly;mlir" \
-C clang/cmake/caches/Release.cmake
ninja -C build stage2-package