From c4f761d7c2bbec6f0da32551a1ff6f715d30685b Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Tue, 6 Aug 2024 13:53:34 +0800 Subject: [PATCH] ... --- run_profile.sh | 8 ++++---- run_tests.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/run_profile.sh b/run_profile.sh index fa02515b..c5c97bb3 100644 --- a/run_profile.sh +++ b/run_profile.sh @@ -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 diff --git a/run_tests.sh b/run_tests.sh index 695eedb9..30b16f74 100644 --- a/run_tests.sh +++ b/run_tests.sh @@ -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