From a2719d3e980804d33152997797cc60a1523bfd22 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Thu, 6 Jun 2019 10:03:03 -0700 Subject: [PATCH] [build-script-impl] Use `cmake-file-api` in case the CMake used supports it --- utils/build-script-impl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/build-script-impl b/utils/build-script-impl index 9b123f5869123..ca94333481d84 100755 --- a/utils/build-script-impl +++ b/utils/build-script-impl @@ -2871,6 +2871,11 @@ for host in "${ALL_HOSTS[@]}"; do if [[ "${RECONFIGURE}" || ! -f "${cmake_cache_path}" || \ ( ! -z "${generator_output_path}" && ! -f "${generator_output_path}" ) ]] ; then call mkdir -p "${build_dir}" + + # Use `cmake-file-api` in case it is available. + call mkdir -p "${build_dir}/.cmake/api/v1/query" + call touch "${build_dir}/.cmake/api/v1/query/codemodel-v2" "${build_dir}/.cmake/api/v1/query/cache-v2" + if [[ -n "${DISTCC}" ]]; then EXTRA_DISTCC_OPTIONS=("DISTCC_HOSTS=localhost,lzo,cpp") fi