[compiler-rt] r273320 - [CMake] NFC. An unset variable evaluates to false, so this else is unneeded

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 21 14:28:40 PDT 2016


Author: cbieneman
Date: Tue Jun 21 16:28:40 2016
New Revision: 273320

URL: http://llvm.org/viewvc/llvm-project?rev=273320&view=rev
Log:
[CMake] NFC. An unset variable evaluates to false, so this else is unneeded

This change is mostly to enable me to do some experimentation with building runtime libraries (See: D20992). It is harmless because unset variables evaluate to false in conditional expressions.

Modified:
    compiler-rt/trunk/CMakeLists.txt

Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=273320&r1=273319&r2=273320&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Tue Jun 21 16:28:40 2016
@@ -11,8 +11,6 @@
 if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
   project(CompilerRT C CXX ASM)
   set(COMPILER_RT_STANDALONE_BUILD TRUE)
-else()
-  set(COMPILER_RT_STANDALONE_BUILD FALSE)
 endif()
 
 cmake_minimum_required(VERSION 3.4.3)




More information about the llvm-commits mailing list