Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: tools/clang/scripts/package.py

Issue 1412893004: Rolling forward clang, hiding some warnings (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Added some untracked files which have been added by Chromium Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/clang/plugins/tests/overridden_methods.txt ('k') | tools/clang/scripts/update.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/package.py
diff --git a/tools/clang/scripts/package.py b/tools/clang/scripts/package.py
index 90f326d08761ad5d662049886f1f74426708f9d0..be8498f527e123da01ccffcf952ea5472d8e1a9e 100755
--- a/tools/clang/scripts/package.py
+++ b/tools/clang/scripts/package.py
@@ -58,6 +58,13 @@ def PrintTarProgress(tarinfo):
def main():
+ if sys.platform == 'win32':
+ try:
+ subprocess.check_output(['grep', '--help'], shell=True)
+ except subprocess.CalledProcessError:
+ print 'Add gnuwin32 to your PATH, then try again.'
+ return 1
+
parser = argparse.ArgumentParser(description='build and package clang')
parser.add_argument('--gcc-toolchain',
help="the prefix for the GCC version used for building. "
@@ -75,10 +82,13 @@ def main():
log, fail_hard=False)
TeeCmd(['svn', 'diff', os.path.join(LLVM_DIR, 'tools', 'clang')],
log, fail_hard=False)
+ # TODO(thakis): compiler-rt is in projects/compiler-rt on Windows but
+ # llvm/compiler-rt elsewhere. So this diff call is currently only right on
+ # Windows.
Tee('Diff in llvm/compiler-rt:\n', log)
- TeeCmd(['svn', 'stat', os.path.join(LLVM_DIR, 'compiler-rt')],
+ TeeCmd(['svn', 'stat', os.path.join(LLVM_DIR, 'projects', 'compiler-rt')],
log, fail_hard=False)
- TeeCmd(['svn', 'diff', os.path.join(LLVM_DIR, 'compiler-rt')],
+ TeeCmd(['svn', 'diff', os.path.join(LLVM_DIR, 'projects', 'compiler-rt')],
log, fail_hard=False)
Tee('Diff in llvm/projects/libcxx:\n', log)
TeeCmd(['svn', 'stat', os.path.join(LLVM_DIR, 'projects', 'libcxx')],
@@ -115,11 +125,13 @@ def main():
exe_ext = '.exe' if sys.platform == 'win32' else ''
want = ['bin/llvm-symbolizer' + exe_ext,
'lib/clang/*/asan_blacklist.txt',
+ 'lib/clang/*/cfi_blacklist.txt',
# Copy built-in headers (lib/clang/3.x.y/include).
'lib/clang/*/include/*',
]
if sys.platform == 'win32':
want.append('bin/clang-cl.exe')
+ want.append('bin/lld-link.exe')
else:
so_ext = 'dylib' if sys.platform == 'darwin' else 'so'
want.extend(['bin/clang',
@@ -183,6 +195,7 @@ def main():
# Set up symlinks.
if sys.platform != 'win32':
os.symlink('clang', os.path.join(pdir, 'bin', 'clang++'))
+ os.symlink('clang', os.path.join(pdir, 'bin', 'clang-cl'))
if sys.platform == 'darwin':
os.symlink('libc++.1.dylib', os.path.join(pdir, 'bin', 'libc++.dylib'))
# Also copy libc++ headers.
« no previous file with comments | « tools/clang/plugins/tests/overridden_methods.txt ('k') | tools/clang/scripts/update.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698