clang: Instead of having update.sh clobber out/, add a define with the current revision.
When clang is turned on or off, or when clang is updated, all .o files and all precompiled headers need to be rebuilt. This is currently done by having the update script remove the out/ directory. This has issues: * It fails to catch build directories with different names (e.g. out_android) * It removes other build artifacts (like resources) that don't need rebuilding * It doesn't happen when turning clang off (i.e. moving clang -> gcc). Instead, let common.gypi add a define with the current clang revision to each source file. This way, the clang revision is on each compile's command line and the build system's commandline tracking can take care of the rebuilding. BUG=nativeclient:3840 NOTRY=true Review URL: https://codereview.chromium.org/268363020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269427 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment