rastogishubham added a comment. Hi, this patch causes an issue with the CMake Xcode build configuration, if I try to use xcode as the generator with CMake, using the build command:
xcrun cmake -G Xcode -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DLLVM_ENABLE_PROJECTS='clang;' -DCMAKE_IGNORE_PATH="/usr/lib;/usr/local/lib;/lib" -DLLVM_TARGETS_TO_BUILD="X86;ARM;AArch64" ../llvm I get: CMake Error in /Users/shubhamrastogi/Development/llvm-project-cas/llvm-project/clang/lib/Headers/CMakeLists.txt: The custom command generating /Users/shubhamrastogi/Development/llvm-project-cas/llvm-project/build/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/lib/clang/15.0.0/include/float.h is attached to multiple targets: x86-resource-headers windows-resource-headers webassembly-resource-headers systemz-resource-headers mips-resource-headers arm-resource-headers cuda-resource-headers riscv-resource-headers ppc-resource-headers opencl-resource-headers aarch64-resource-headers hip-resource-headers ve-resource-headers hexagon-resource-headers clang-resource-headers but none of these is a common dependency of the other(s). This is not allowed by the Xcode "new build system". CMake Error in /Users/shubhamrastogi/Development/llvm-project-cas/llvm-project/third-party/benchmark/CMakeLists.txt: The custom command generating /Users/shubhamrastogi/Development/llvm-project-cas/llvm-project/build/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/lib/clang/15.0.0/include/float.h is attached to multiple targets: x86-resource-headers windows-resource-headers webassembly-resource-headers systemz-resource-headers mips-resource-headers arm-resource-headers cuda-resource-headers riscv-resource-headers ppc-resource-headers opencl-resource-headers aarch64-resource-headers hip-resource-headers ve-resource-headers hexagon-resource-headers clang-resource-headers but none of these is a common dependency of the other(s). This is not allowed by the Xcode "new build system". I used git bisect to figure this out, is there some solution to this? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D123498/new/ https://reviews.llvm.org/D123498 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits