Run tests using -O2.

Disconcertingly, this seems to fix some gcc-only crashes with the
generic-16 target (specifically, for half.ispc and for goto-[23].ispc--
those tests run fine with other compilers with generic-16.)
This commit is contained in:
Matt Pharr
2012-01-05 12:22:05 -08:00
parent 2951589825
commit cb7ad371c6

View File

@@ -221,7 +221,7 @@ def run_test(filename):
gcc_arch = '-m32' gcc_arch = '-m32'
else: else:
gcc_arch = '-m64' gcc_arch = '-m64'
cc_cmd = "%s -msse4.2 -I. %s test_static.cpp -DTEST_SIG=%d %s -o %s" % \ cc_cmd = "%s -O2 -msse4.2 -I. %s test_static.cpp -DTEST_SIG=%d %s -o %s" % \
(options.compiler_exe, gcc_arch, match, obj_name, exe_name) (options.compiler_exe, gcc_arch, match, obj_name, exe_name)
if platform.system() == 'Darwin': if platform.system() == 'Darwin':
cc_cmd += ' -Wl,-no_pie' cc_cmd += ' -Wl,-no_pie'