[PATCH] D60658: Fix CMake Invalid Escape Sequence
xoviat via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 13 13:53:34 PDT 2019
xoviat created this revision.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.
On CMake 3.14, I received the following error: Invalid Escape sequence. This patch resolves the error.
Repository:
rL LLVM
https://reviews.llvm.org/D60658
Files:
cmake/modules/HandleLLVMOptions.cmake
Index: cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- cmake/modules/HandleLLVMOptions.cmake
+++ cmake/modules/HandleLLVMOptions.cmake
@@ -11,7 +11,7 @@
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
-if(CMAKE_LINKER MATCHES "lld-link\.exe" OR (WIN32 AND LLVM_USE_LINKER STREQUAL "lld") OR LLVM_ENABLE_LLD)
+if(CMAKE_LINKER MATCHES "lld-link\\.exe" OR (WIN32 AND LLVM_USE_LINKER STREQUAL "lld") OR LLVM_ENABLE_LLD)
set(LINKER_IS_LLD_LINK TRUE)
else()
set(LINKER_IS_LLD_LINK FALSE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60658.195039.patch
Type: text/x-patch
Size: 565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190413/a4336494/attachment.bin>
More information about the llvm-commits
mailing list