Skip to content

Commit 51de250

Browse files
committed
[build] Use C++17 standard
This tells the Swift compiler to parse LLVM C++ headers in C++17 mode. LLVM codebase requires C++17 since last year, and this change prevents compilation errors when building the bindings.
1 parent 46c67a9 commit 51de250

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/LLVM/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +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"
56
"-Xfrontend" "-enable-experimental-cxx-interop")
67
target_include_directories(LLVM_Utils PUBLIC
78
"${LLVM_MAIN_INCLUDE_DIR}"

0 commit comments

Comments
 (0)