From be8d603316319ba74084eda193e9d07a27915e8c Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 29 Feb 2024 11:07:49 +0800 Subject: [PATCH] add `-frtti` --- run_profile.sh | 2 +- run_tests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run_profile.sh b/run_profile.sh index c3ad3af2..f0ba16b0 100644 --- a/run_profile.sh +++ b/run_profile.sh @@ -1,6 +1,6 @@ python prebuild.py 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 mv benchmarks/gmon.out . gprof main gmon.out > gprof.txt diff --git a/run_tests.sh b/run_tests.sh index 86a7b875..d7264fff 100644 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,6 +1,6 @@ python prebuild.py 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