[compiler-rt] r303817 - Allow builds to set COMPILER_RT_OS_DIR differently from CMAKE_SYSTEM_NAME

Jonathan Roelofs via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 15:41:49 PDT 2017


Author: jroelofs
Date: Wed May 24 17:41:49 2017
New Revision: 303817

URL: http://llvm.org/viewvc/llvm-project?rev=303817&view=rev
Log:
Allow builds to set COMPILER_RT_OS_DIR differently from CMAKE_SYSTEM_NAME

Modified:
    compiler-rt/trunk/cmake/base-config-ix.cmake

Modified: compiler-rt/trunk/cmake/base-config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/base-config-ix.cmake?rev=303817&r1=303816&r2=303817&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/base-config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/base-config-ix.cmake Wed May 24 17:41:49 2017
@@ -63,7 +63,9 @@ else()
   set(COMPILER_RT_TEST_COMPILER_ID GNU)
 endif()
 
-string(TOLOWER ${CMAKE_SYSTEM_NAME} COMPILER_RT_OS_DIR)
+if(NOT DEFINED COMPILER_RT_OS_DIR)
+  string(TOLOWER ${CMAKE_SYSTEM_NAME} COMPILER_RT_OS_DIR)
+endif()
 set(COMPILER_RT_LIBRARY_OUTPUT_DIR
   ${COMPILER_RT_OUTPUT_DIR}/lib/${COMPILER_RT_OS_DIR})
 set(COMPILER_RT_LIBRARY_INSTALL_DIR




More information about the llvm-commits mailing list