diff options
author | hans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-16 17:03:57 +0000 |
---|---|---|
committer | hans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-16 17:03:57 +0000 |
commit | 4c1abdb71fa00b79ae6d0deb399c9a2cff37aba5 (patch) | |
tree | 0497dc4c3426d174ff52b1ec2718f711fd1f74a2 /tools | |
parent | 799b3a0d40cbe521835666e8fd8fa86f20db84e3 (diff) | |
download | chromium_src-4c1abdb71fa00b79ae6d0deb399c9a2cff37aba5.zip chromium_src-4c1abdb71fa00b79ae6d0deb399c9a2cff37aba5.tar.gz chromium_src-4c1abdb71fa00b79ae6d0deb399c9a2cff37aba5.tar.bz2 |
Win-clang update script: make an auxiliary copy of the sanitizer headers
This dir will be put on the include path for MSVC to pick up when invoked
as fallback compiler.
BUG=345874
NOTRY=true
Review URL: https://codereview.chromium.org/281413006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/clang/scripts/update.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/clang/scripts/update.py b/tools/clang/scripts/update.py index 7f2b725..d0ba883 100755 --- a/tools/clang/scripts/update.py +++ b/tools/clang/scripts/update.py @@ -160,6 +160,20 @@ def UpdateClang(): CopyFile(os.path.join(asan_rt_lib_src_dir, '..', '..', 'asan_blacklist.txt'), os.path.join(asan_rt_lib_dst_dir, '..', '..')) + # Make an extra copy of the sanitizer headers, to be put on the include path + # of the fallback compiler. + sanitizer_include_dir = os.path.join(LLVM_BUILD_DIR, 'lib', 'clang', '3.5.0', + 'include', 'sanitizer') + aux_sanitizer_include_dir = os.path.join(LLVM_BUILD_DIR, 'lib', 'clang', + '3.5.0', 'include_sanitizer', + 'sanitizer') + if not os.path.exists(aux_sanitizer_include_dir): + os.makedirs(aux_sanitizer_include_dir) + for _, _, files in os.walk(sanitizer_include_dir): + for f in files: + CopyFile(os.path.join(sanitizer_include_dir, f), + aux_sanitizer_include_dir) + WriteStampFile(LLVM_WIN_REVISION) print 'Clang update was successful.' return 0 |