[PATCH] D26463: [cmake] Move LLVM_BUILD_STATIC check to an earlier point

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 17 03:32:12 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL287220: [cmake] Move LLVM_BUILD_STATIC check to an earlier point (authored by labath).

Changed prior to commit:
  https://reviews.llvm.org/D26463?vs=77369&id=78343#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D26463

Files:
  llvm/trunk/CMakeLists.txt
  llvm/trunk/cmake/modules/HandleLLVMOptions.cmake


Index: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
@@ -180,10 +180,6 @@
   endif( LLVM_BUILD_32_BITS )
 endif( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT WIN32 )
 
-if (LLVM_BUILD_STATIC)
-  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
-endif()
-
 if( XCODE )
   # For Xcode enable several build settings that correspond to
   # many warnings that are on by default in Clang but are
Index: llvm/trunk/CMakeLists.txt
===================================================================
--- llvm/trunk/CMakeLists.txt
+++ llvm/trunk/CMakeLists.txt
@@ -554,6 +554,10 @@
   endif()
 endif()
 
+if (LLVM_BUILD_STATIC)
+  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
+endif()
+
 # All options referred to from HandleLLVMOptions have to be specified
 # BEFORE this include, otherwise options will not be correctly set on
 # first cmake run


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26463.78343.patch
Type: text/x-patch
Size: 1041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161117/2d14e4b5/attachment.bin>


More information about the llvm-commits mailing list