[PATCH] D58619: [NFC][cmake] Build fix in tools/llvm-config/CMakeLists.txt

Gabor Buella via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 02:42:03 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL369887: [NFC][cmake] Build fix in tools/llvm-config/CMakeLists.txt (authored by GBuella, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D58619?vs=188164&id=217097#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58619/new/

https://reviews.llvm.org/D58619

Files:
  llvm/trunk/tools/llvm-config/CMakeLists.txt


Index: llvm/trunk/tools/llvm-config/CMakeLists.txt
===================================================================
--- llvm/trunk/tools/llvm-config/CMakeLists.txt
+++ llvm/trunk/tools/llvm-config/CMakeLists.txt
@@ -34,9 +34,9 @@
 # NOTE: We don't want to start extracting any random C/CXX flags that the
 # user may add that could affect the ABI.  We only want to extract flags
 # that have been added by the LLVM build system.
-string(REGEX MATCH "-std=[^ ]\+" LLVM_CXX_STD_FLAG ${CMAKE_CXX_FLAGS})
-string(REGEX MATCH "-stdlib=[^ ]\+" LLVM_CXX_STDLIB_FLAG ${CMAKE_CXX_FLAGS})
-string(REGEX MATCH "-std=[^ ]\+" LLVM_C_STD_FLAG ${CMAKE_C_FLAGS})
+string(REGEX MATCH "-std=[^ ]+" LLVM_CXX_STD_FLAG ${CMAKE_CXX_FLAGS})
+string(REGEX MATCH "-stdlib=[^ ]+" LLVM_CXX_STDLIB_FLAG ${CMAKE_CXX_FLAGS})
+string(REGEX MATCH "-std=[^ ]+" LLVM_C_STD_FLAG ${CMAKE_C_FLAGS})
 
 # Use configure_file to create BuildVariables.inc.
 set(LLVM_SRC_ROOT ${LLVM_MAIN_SRC_DIR})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58619.217097.patch
Type: text/x-patch
Size: 960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190826/0ddeaa5e/attachment.bin>


More information about the llvm-commits mailing list