summaryrefslogtreecommitdiff
path: root/cmake/Modules/CompilerRTDarwinUtils.cmake
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-10-02 17:37:40 +0000
committerChris Bieneman <beanz@apple.com>2015-10-02 17:37:40 +0000
commit3813e464741b387080bee0d42d0b9b72bde37e5d (patch)
tree5fe36d777674630cedf9b1c4993386b39f8361de /cmake/Modules/CompilerRTDarwinUtils.cmake
parentc0baeff08a20a2f1001a4b67679a59d79d8b158e (diff)
[CMake] Workaround for the lipo output directory not being created.
This should resolve an issue reported by mclow. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@249158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/Modules/CompilerRTDarwinUtils.cmake')
-rw-r--r--cmake/Modules/CompilerRTDarwinUtils.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Modules/CompilerRTDarwinUtils.cmake b/cmake/Modules/CompilerRTDarwinUtils.cmake
index 12969b9ab..9dc1c064f 100644
--- a/cmake/Modules/CompilerRTDarwinUtils.cmake
+++ b/cmake/Modules/CompilerRTDarwinUtils.cmake
@@ -187,6 +187,7 @@ function(darwin_lipo_libs name)
"LIPO_FLAGS;DEPENDS"
${ARGN})
add_custom_command(OUTPUT ${LIB_OUTPUT_DIR}/lib${name}.a
+ COMMAND ${CMAKE_COMMAND} -E make_directory ${LIB_OUTPUT_DIR}
COMMAND lipo -output
${LIB_OUTPUT_DIR}/lib${name}.a
-create ${LIB_LIPO_FLAGS}