Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit 82f2f12

Browse files
lwesiersgfxbot
authored andcommitted
fix for LLVM8
Change-Id: I1e9676e7bd4b3abb03082c2f64a9673e7ae83ab5
1 parent 3285b32 commit 82f2f12

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- a/tools/llvm-config/CMakeLists.txt
2+
+++ b/tools/llvm-config/CMakeLists.txt
3+
@@ -34,8 +34,8 @@ get_property(COMPILE_FLAGS TARGET llvm-config PROPERTY COMPILE_FLAGS)
4+
# NOTE: We don't want to start extracting any random C/CXX flags that the
5+
# user may add that could affect the ABI. We only want to extract flags
6+
# that have been added by the LLVM build system.
7+
-string(REGEX MATCH "-std=[^ ]\+" LLVM_CXX_STD_FLAG ${CMAKE_CXX_FLAGS})
8+
-string(REGEX MATCH "-std=[^ ]\+" LLVM_C_STD_FLAG ${CMAKE_C_FLAGS})
9+
+string(REGEX MATCH "-std=[^ ]\\+" LLVM_CXX_STD_FLAG ${CMAKE_CXX_FLAGS})
10+
+string(REGEX MATCH "-std=[^ ]\\+" LLVM_C_STD_FLAG ${CMAKE_C_FLAGS})
11+
12+
# Use configure_file to create BuildVariables.inc.
13+
set(LLVM_SRC_ROOT ${LLVM_MAIN_SRC_DIR})

0 commit comments

Comments
 (0)