OSDN Git Service

Fix CMake Invalid Escape Sequence
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Mon, 6 May 2019 14:07:01 +0000 (14:07 +0000)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Mon, 6 May 2019 14:07:01 +0000 (14:07 +0000)
Patch by xoviat

Differential Revision: https://reviews.llvm.org/D60658

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360045 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake

index 88946aa..76ecfbe 100644 (file)
@@ -12,7 +12,7 @@ include(CheckCCompilerFlag)
 include(CheckCXXCompilerFlag)
 include(CheckSymbolExists)
 
-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)