From 5628f415b9f8ba219dbc5dd814de06240ab24db3 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Tue, 9 Apr 2019 08:31:25 +0000 Subject: [PATCH] [CMake] Fix accidentally swapped input/output parameters of string(REPLACE) for mingw llvm-svn: 357979 --- cmake/modules/HandleLLVMOptions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 47a111253bf..15497d405e0 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -452,7 +452,7 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE ) if (CYGWIN OR MINGW) # MinGW and Cygwin are a bit stricter and lack things like # 'strdup', 'stricmp', etc in c++11 mode. - string(REPLACE "c++" "gnu++" "${LLVM_CXX_STD}" gnu_LLVM_CXX_STD) + string(REPLACE "c++" "gnu++" gnu_LLVM_CXX_STD "${LLVM_CXX_STD}") append("-std=${gnu_LLVM_CXX_STD}" CMAKE_CXX_FLAGS) else() append("-std=${LLVM_CXX_STD}" CMAKE_CXX_FLAGS)