summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-12-17 18:09:18 +0100
committerMichał Górny <mgorny@gentoo.org>2019-12-18 16:45:42 +0100
commit6207b060ad80a3bd0369e2b29b73035d64bc65f6 (patch)
tree4e46d58227f81ee9c70af847ff37c606309c810d
parentad364956edb7f06e0064e90e7c37d13b3cccd1cf (diff)
downloadbcm5719-llvm-6207b060ad80a3bd0369e2b29b73035d64bc65f6.tar.gz
bcm5719-llvm-6207b060ad80a3bd0369e2b29b73035d64bc65f6.zip
[clang] [cmake] Fix gen_ast_dump_json_test.py binary dir
Use correct directory to put gen_ast_dump_json_test.py instead of LLVM_BINARY_DIR. This fixes attempting to write to /usr when building clang standalone. Differential Revision: https://reviews.llvm.org/D71615
-rw-r--r--clang/test/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt
index 1e545ef0ea9..16e487f07b7 100644
--- a/clang/test/CMakeLists.txt
+++ b/clang/test/CMakeLists.txt
@@ -138,7 +138,8 @@ endif()
# Copy gen_ast_dump_json_test.py to the clang build dir. This allows invoking
# it without having to pass the --clang= argument
-configure_file(AST/gen_ast_dump_json_test.py ${LLVM_TOOLS_BINARY_DIR}/gen_ast_dump_json_test.py COPYONLY)
+configure_file(AST/gen_ast_dump_json_test.py
+ ${CLANG_BINARY_DIR}/bin/gen_ast_dump_json_test.py COPYONLY)
add_custom_target(clang-test-depends DEPENDS ${CLANG_TEST_DEPS})
set_target_properties(clang-test-depends PROPERTIES FOLDER "Clang tests")
OpenPOWER on IntegriCloud