summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-09-18 21:52:02 +0000
committerZachary Turner <zturner@google.com>2017-09-18 21:52:02 +0000
commitf8c80f9101ecf1fea12ec6762f06c49022f932b9 (patch)
tree02fd096c8a70a9a220b69acdb103cf64331fd6ec /llvm
parentc8d8653de8a50e335e275ac24b9b0fe5f960a125 (diff)
downloadbcm5719-llvm-f8c80f9101ecf1fea12ec6762f06c49022f932b9.tar.gz
bcm5719-llvm-f8c80f9101ecf1fea12ec6762f06c49022f932b9.zip
[cmake] Add a simple function to dump all variables.
This is useful when debugging CMake problems. llvm-svn: 313574
Diffstat (limited to 'llvm')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 6e0aacec4a3..5cd20c684f8 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -1187,6 +1187,13 @@ function(configure_lit_site_cfg input output)
endif()
endfunction()
+function(dump_all_cmake_variables)
+ get_cmake_property(_variableNames VARIABLES)
+ foreach (_variableName ${_variableNames})
+ message(STATUS "${_variableName}=${${_variableName}}")
+ endforeach()
+endfunction()
+
function(get_llvm_lit_path base_dir file_name)
cmake_parse_arguments(ARG "ALLOW_EXTERNAL" "" "" ${ARGN})
OpenPOWER on IntegriCloud