[llvm] [llvm-config] Quote and escape paths (PR #97305)
Yi Kong via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 4 20:34:38 PDT 2024
kongy wrote:
Our build script invokes `llvm-config` and feeds the target list to `ninja`. With the extra unnecessary quotes, ninja does not find the correct target.
```
DEBUG:utils:subprocess.run:02:40:16 /tmpfs/src/git/out/stage2-install/bin/llvm-config --libs object --libnames --link-static
DEBUG:utils:subprocess.run:02:40:16 /tmpfs/src/git/prebuilts/build-tools/linux_musl-x86/bin/ninja '"libLLVMObject.a"' '"libLLVMTextAPI.a"' '"libLLVMMCParser.a"' '"libLLVMIRReader.a"' '"libLLVMAsmParser.a"' '"libLLVMMC.a"' '"libLLVMDebugInfoCodeView.a"' '"libLLVMBitReader.a"' '"libLLVMCore.a"' '"libLLVMRemarks.a"' '"libLLVMBinaryFormat.a"' '"libLLVMTargetParser.a"' '"libLLVMBitstreamReader.a"' '"libLLVMSupport.a"' '"libLLVMDemangle.a"'
ninja: error: unknown target '"libLLVMObject.a"', did you mean 'libLLVMObject.a'?
```
https://github.com/llvm/llvm-project/pull/97305
More information about the llvm-commits
mailing list