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

Unified Diff: tools/nocompile_driver.py

Issue 678263003: Switch to clang for nocompile tests and rebaseline existing results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Downcasting Pass Created 6 years, 1 month 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 | « build/nocompile.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/nocompile_driver.py
diff --git a/tools/nocompile_driver.py b/tools/nocompile_driver.py
index 5a8a081afb119004373e0977c750952ab06d0d64..9aa1e94dbd3f14a4bc638e23740eaf8e9205c20e 100755
--- a/tools/nocompile_driver.py
+++ b/tools/nocompile_driver.py
@@ -220,13 +220,16 @@ def StartTest(sourcefile_path, cflags, config):
}
"""
# TODO(ajwong): Get the compiler from gyp.
- cmdline = ['g++']
+ cmdline = [os.path.join(os.path.dirname(os.path.realpath(__file__)),
+ '../third_party/llvm-build/Release+Asserts/bin',
+ 'clang++')]
cmdline.extend(shlex.split(cflags))
name = config['name']
expectations = config['expectations']
if expectations is not None:
cmdline.append('-D%s' % name)
- cmdline.extend(['-o', '/dev/null', '-c', '-x', 'c++', sourcefile_path])
+ cmdline.extend(['-std=c++11', '-o', '/dev/null', '-c', '-x', 'c++',
+ sourcefile_path])
process = subprocess.Popen(cmdline, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
« no previous file with comments | « build/nocompile.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698