Clang update.sh: always clear CMake's cache, and only set MACOSX_DEPLOYMENT_TARGET when needed
Previously it was possible to run into situations where CMake would fail, write a partial CMakeCache.txt, and on the next run of update.sh, we would think the build was already configured and skip the CMake step. This patch removes that problem by always clearing the cache and forcing a full re-run of CMake. This also has the benefit that if the path to the compiler or a compiler flag changes, the build will get updated. Note that doing a full re-run of CMake doesn't mean doing a full re-build. Also, we should only be setting MACOSX_DEPLOYMENT_TARGET when doing bootstrap builds. This patch fixes that too. BUG=415670 Review URL: https://codereview.chromium.org/603943003 Cr-Commit-Position: refs/heads/master@{#296771}
Showing
Please register or sign in to comment