blueloveTH 1 éve
szülő
commit
c4f761d7c2
2 módosított fájl, 8 hozzáadás és 8 törlés
  1. 4 4
      run_profile.sh
  2. 4 4
      run_tests.sh

+ 4 - 4
run_profile.sh

@@ -1,10 +1,10 @@
+set -e
+
 python prebuild.py
 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
 ./main benchmarks/fib.py
 gprof main gmon.out > gprof.txt
 gprof main gmon.out > gprof.txt
 rm gmon.out
 rm gmon.out

+ 4 - 4
run_tests.sh

@@ -1,10 +1,10 @@
+set -e
+
 python prebuild.py
 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
 python scripts/run_tests.py