MaskRay added a comment. In D109977#3662859 <https://reviews.llvm.org/D109977#3662859>, @mgorny wrote:
> Ok, I think the key to reproducing it is `-DLLVM_LINK_LLVM_DYLIB=ON`. We pass > that while building LLVM, so it gets passed on to clang but I suppose passing > it to clang build might be sufficient to reproduce the problem. > ... cmake -Sllvm -B/tmp/out/play -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='llvm;clang' -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON ninja -C /tmp/out/play all works on my Debian testing machine at main (without any patch). --- If I enable `-DLLVM_TOOL_LLVM_DRIVER_BUILD=on`, there is an incompatibility due to some `cl::opt` options registered more than once. This is a classical error. I think at this point `-DLLVM_TOOL_LLVM_DRIVER_BUILD=on` users are not supposed to use -DLLVM_BUILD_LLVM_DYLIB=ON, but it'll be useful to fix this to get more size reduction. % ninja -C /tmp/out/play bin/llvm % /tmp/out/play/bin/llvm clang --help : CommandLine Error: Option 'arm-implicit-it' registered more than once! LLVM ERROR: inconsistency in registered CommandLine options [1] 160970 IOT instruction /tmp/out/play/bin/llvm clang --help Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D109977/new/ https://reviews.llvm.org/D109977 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits