This commit is contained in:
blueloveTH 2024-08-06 13:53:34 +08:00
parent e94cfaf42e
commit c4f761d7c2
2 changed files with 8 additions and 8 deletions

View File

@ -1,10 +1,10 @@
set -e
python prebuild.py
SRC_C=$(find src/ -name "*.c")
SRC_CPP=$(find src/ -name "*.cpp")
SRC="$SRC_C $SRC_CPP"
SRC=$(find src/ -name "*.c")
g++ -pg -Og -std=c++17 -frtti -Wfatal-errors -o main $SRC src2/main.cpp -Iinclude
gcc -pg -Og -std=c11 -Wfatal-errors -o main $SRC src2/main.c -Iinclude
./main benchmarks/fib.py
gprof main gmon.out > gprof.txt
rm gmon.out

View File

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