[llvm] r334781 - [cmake] Change ON/OFF to YES/NO. NFC
Shoaib Meenai via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 14 16:40:04 PDT 2018
Author: smeenai
Date: Thu Jun 14 16:40:04 2018
New Revision: 334781
URL: http://llvm.org/viewvc/llvm-project?rev=334781&view=rev
Log:
[cmake] Change ON/OFF to YES/NO. NFC
compnerd pointed out that the latter reads better over here.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=334781&r1=334780&r2=334781&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Thu Jun 14 16:40:04 2018
@@ -152,12 +152,12 @@ if(APPLE)
COMMAND "${CMAKE_LINKER}" -v
ERROR_VARIABLE stderr
)
- set(LLVM_LINKER_DETECTED ON)
+ set(LLVM_LINKER_DETECTED YES)
if("${stderr}" MATCHES "PROJECT:ld64")
- set(LLVM_LINKER_IS_LD64 ON)
+ set(LLVM_LINKER_IS_LD64 YES)
message(STATUS "Linker detection: ld64")
else()
- set(LLVM_LINKER_DETECTED OFF)
+ set(LLVM_LINKER_DETECTED NO)
message(STATUS "Linker detection: unknown")
endif()
elseif(NOT WIN32)
@@ -173,22 +173,22 @@ elseif(NOT WIN32)
OUTPUT_VARIABLE stdout
ERROR_VARIABLE stderr
)
- set(LLVM_LINKER_DETECTED ON)
+ set(LLVM_LINKER_DETECTED YES)
if("${stdout}" MATCHES "GNU gold")
- set(LLVM_LINKER_IS_GOLD ON)
+ set(LLVM_LINKER_IS_GOLD YES)
message(STATUS "Linker detection: GNU Gold")
elseif("${stdout}" MATCHES "^LLD")
- set(LLVM_LINKER_IS_LLD ON)
+ set(LLVM_LINKER_IS_LLD YES)
message(STATUS "Linker detection: LLD")
elseif("${stdout}" MATCHES "GNU ld")
- set(LLVM_LINKER_IS_GNULD ON)
+ set(LLVM_LINKER_IS_GNULD YES)
message(STATUS "Linker detection: GNU ld")
elseif("${stderr}" MATCHES "Solaris Link Editors" OR
"${stdout}" MATCHES "Solaris Link Editors")
- set(LLVM_LINKER_IS_SOLARISLD ON)
+ set(LLVM_LINKER_IS_SOLARISLD YES)
message(STATUS "Linker detection: Solaris ld")
else()
- set(LLVM_LINKER_DETECTED OFF)
+ set(LLVM_LINKER_DETECTED NO)
message(STATUS "Linker detection: unknown")
endif()
endif()
More information about the llvm-commits
mailing list