tests/cxxrtl: Add -O2

This commit is contained in:
Merry 2023-12-13 12:27:06 +00:00
parent 29e0cc6acd
commit 1dff3c83d9
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ set -ex
run_subtest () { run_subtest () {
local subtest=$1; shift 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} ./cxxrtl-test-${subtest}
} }