summaryrefslogtreecommitdiffstats
path: root/libcxx/cmake
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-09-19 02:46:28 +0000
committerZachary Turner <zturner@google.com>2017-09-19 02:46:28 +0000
commitcbafb0f8e1d2919396b77d8b855944bc89f17c32 (patch)
tree8682d7c3d3feb5d21bbf70371cb1552779e8113b /libcxx/cmake
parentde62046d68083a9a39ab29194adb6258a7ac76a9 (diff)
downloadbcm5719-llvm-cbafb0f8e1d2919396b77d8b855944bc89f17c32.tar.gz
bcm5719-llvm-cbafb0f8e1d2919396b77d8b855944bc89f17c32.zip
Fix llvm-lit script generation in libcxx.
Differential Revision: https://reviews.llvm.org/D37997 llvm-svn: 313606
Diffstat (limited to 'libcxx/cmake')
-rw-r--r--libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake b/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake
index 879882dcfea..b724bf69f1a 100644
--- a/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake
+++ b/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake
@@ -106,6 +106,11 @@ macro(configure_out_of_tree_llvm)
set(LLVM_ENABLE_SPHINX OFF)
endif()
+ # In a standalone build, we don't have llvm to automatically generate the
+ # llvm-lit script for us. So we need to provide an explicit directory that
+ # the configurator should write the script into.
+ set(LLVM_LIT_OUTPUT_DIR "${libcxx_BINARY_DIR}/bin")
+
# Required LIT Configuration ------------------------------------------------
# Define the default arguments to use with 'lit', and an option for the user
# to override.
OpenPOWER on IntegriCloud