Make the llvm-include-tests flag actually do something

Before this patch, it would not actually do anything unless
compute_cmake_llvm_tool_disable_flags()
was called, which is currently dead code, in the state of
build-script-impl currently.
This commit is contained in:
Jacob Mizraji
2016-07-29 15:32:06 -07:00
parent e37d04854c
commit f9d6de5ceb

View File

@@ -1974,6 +1974,13 @@ for host in "${ALL_HOSTS[@]}"; do
) )
fi fi
if [[ $(true_false "${LLVM_INCLUDE_TESTS}") == "FALSE" ]]; then
cmake_options+=(
-DLLVM_INCLUDE_TESTS=NO
-DCLANG_INCLUDE_TESTS=NO
)
fi
if [[ $(is_cross_tools_host ${host}) ]] ; then if [[ $(is_cross_tools_host ${host}) ]] ; then
cmake_options=( cmake_options=(
"${cmake_options[@]}" "${cmake_options[@]}"