From cb7ad371c62c6e5bc41991664245e73f8153923b Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Thu, 5 Jan 2012 12:22:05 -0800 Subject: [PATCH] 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.) --- run_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tests.py b/run_tests.py index a7da640f..33b60b57 100755 --- a/run_tests.py +++ b/run_tests.py @@ -221,7 +221,7 @@ def run_test(filename): gcc_arch = '-m32' else: 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) if platform.system() == 'Darwin': cc_cmd += ' -Wl,-no_pie'