We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d84db4c + 6f1d5bf commit eff4170Copy full SHA for eff4170
utils/build-script-impl
@@ -2037,10 +2037,12 @@ for deployment_target in "${HOST_TARGET}" "${CROSS_TOOLS_DEPLOYMENT_TARGETS[@]}"
2037
fi
2038
2039
# Configure if necessary.
2040
- if [[ "${RECONFIGURE}" || ! -f "${build_dir}/CMakeCache.txt" || \
+ cmake_cache_path="${build_dir}/CMakeCache.txt"
2041
+ if [[ "${RECONFIGURE}" || ! -f "${cmake_cache_path}" || \
2042
( ! -z "${generator_output_path}" && ! -f "${generator_output_path}" ) ]] ; then
- mkdir -p "${build_dir}"
2043
set -x
2044
+ mkdir -p "${build_dir}"
2045
+ rm -f "${cmake_cache_path}"
2046
(cd "${build_dir}" && "${CMAKE}" "${cmake_options[@]}" ${USER_CONFIG_ARGS})
2047
{ set +x; } 2>/dev/null
2048
0 commit comments