llvm-project
b2ce908a - [compiler-rt][CMake] Fix build when specifying --stdlib= (with 2 dashes) (#136111)

Commit
56 days ago
[compiler-rt][CMake] Fix build when specifying --stdlib= (with 2 dashes) (#136111) You can pass the stdlib argument either as -stdlib and --stdlib - the previous regex did not account for this however - which caused the build to fail, as a --stdlib argument would be replaced with a single dash, causing clang to assume reading from stdin and the build to fail: clang++: error: -E or -x required when input is from standard input clang++: error: cannot specify -o when generating multiple output files The files [libcxxabi/CMakeLists.txt](https://github.com/llvm/llvm-project/blob/bf6986f9f09f79da38006a83c339226c429bb686/libcxxabi/CMakeLists.txt#L261) and [libunwind/CMakeLists.txt](https://github.com/llvm/llvm-project/blob/bf6986f9f09f79da38006a83c339226c429bb686/libunwind/CMakeLists.txt#L257) account for this by removing --stdlib first. Co-authored-by: Vitaly Buka <vitalybuka@google.com>
Author
Parents
Loading