From 1dff3c83d97724ee7d4872404b8df7201773734c Mon Sep 17 00:00:00 2001 From: Merry Date: Wed, 13 Dec 2023 12:27:06 +0000 Subject: [PATCH] tests/cxxrtl: Add -O2 --- tests/cxxrtl/run-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cxxrtl/run-test.sh b/tests/cxxrtl/run-test.sh index ff2c35faf..89de71c6b 100755 --- a/tests/cxxrtl/run-test.sh +++ b/tests/cxxrtl/run-test.sh @@ -5,7 +5,7 @@ set -ex run_subtest () { local subtest=$1; shift - ${CC:-gcc} -std=c++11 -o cxxrtl-test-${subtest} -I../../backends/cxxrtl/runtime test_${subtest}.cc -lstdc++ + ${CC:-gcc} -std=c++11 -O2 -o cxxrtl-test-${subtest} -I../../backends/cxxrtl/runtime test_${subtest}.cc -lstdc++ ./cxxrtl-test-${subtest} }