Skip to content

Commit 4ed6293

Browse files
committed
[build] Prevent CMake from de-duplicating compiler options
`-Xcc` can occur several times in the list of compiler options, this tells CMake to not try to merge multiple `-Xcc` args into one. (cherry picked from commit a8e9a2f)
1 parent 7c94a86 commit 4ed6293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/LLVM/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ add_library(LLVM_Utils
22
LLVM_Utils.swift)
33
target_compile_options(LLVM_Utils PUBLIC
44
"-emit-module"
5-
"-Xcc" "-std=c++17"
5+
"SHELL:-Xcc -std=c++17"
66
"-cxx-interoperability-mode=default")
77
target_include_directories(LLVM_Utils PUBLIC
88
"${LLVM_MAIN_INCLUDE_DIR}"

0 commit comments

Comments
 (0)