summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Roelofs <jonathan@codesourcery.com>2017-05-24 22:41:49 +0000
committerJonathan Roelofs <jonathan@codesourcery.com>2017-05-24 22:41:49 +0000
commit3c8f953f6193f9199a2b9b69834a4b3a2ad44701 (patch)
tree610155e74d2f3502b3f0fb142a06cbe3f4d469ba
parenta8ac360a0c5796ec5560b3d4abaf511b1177c14d (diff)
downloadbcm5719-llvm-3c8f953f6193f9199a2b9b69834a4b3a2ad44701.tar.gz
bcm5719-llvm-3c8f953f6193f9199a2b9b69834a4b3a2ad44701.zip
Allow builds to set COMPILER_RT_OS_DIR differently from CMAKE_SYSTEM_NAME
llvm-svn: 303817
-rw-r--r--compiler-rt/cmake/base-config-ix.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/cmake/base-config-ix.cmake b/compiler-rt/cmake/base-config-ix.cmake
index 6f9f15139ad..b38c6ca96fa 100644
--- a/compiler-rt/cmake/base-config-ix.cmake
+++ b/compiler-rt/cmake/base-config-ix.cmake
@@ -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
OpenPOWER on IntegriCloud