add -frtti

This commit is contained in:
blueloveTH 2024-02-29 11:07:49 +08:00
parent a2e7846662
commit be8d603316
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
python prebuild.py python prebuild.py
SRC=$(find src/ -name "*.cpp") SRC=$(find src/ -name "*.cpp")
clang++ -pg -O1 -std=c++17 -stdlib=libc++ -Wfatal-errors -o main $SRC src2/main.cpp -Iinclude clang++ -pg -O1 -std=c++17 -stdlib=libc++ -frtti -Wfatal-errors -o main $SRC src2/main.cpp -Iinclude
time ./main benchmarks/fib.py time ./main benchmarks/fib.py
mv benchmarks/gmon.out . mv benchmarks/gmon.out .
gprof main gmon.out > gprof.txt gprof main gmon.out > gprof.txt

View File

@ -1,6 +1,6 @@
python prebuild.py python prebuild.py
SRC=$(find src/ -name "*.cpp") SRC=$(find src/ -name "*.cpp")
clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -DPK_ENABLE_OS=1 clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -frtti -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -DPK_ENABLE_OS=1
python scripts/run_tests.py python scripts/run_tests.py