Răsfoiți Sursa

add `-frtti`

blueloveTH 2 ani în urmă
părinte
comite
be8d603316
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      run_profile.sh
  2. 1 1
      run_tests.sh

+ 1 - 1
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

+ 1 - 1
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