This commit is contained in:
BLUELOVETH 2023-07-14 17:40:47 +08:00
parent 0ee5c5add6
commit 97515819d7
3 changed files with 4 additions and 4 deletions

View File

@ -61,8 +61,8 @@ jobs:
path: output
- name: Benchmark
run: python3 scripts/run_tests.py benchmark
- name: C Binding Test
run: bash run_c_binding_test.sh
# - name: C Binding Test
# run: bash run_c_binding_test.sh
build_macos:
runs-on: macos-latest
steps:

View File

@ -1,6 +1,6 @@
python3 prebuild.py
SRC=$(find src/ -name "*.cpp")
clang++ -pg -O1 -std=c++17 -fno-rtti -stdlib=libc++ -Wfatal-errors -o main $SRC -Iinclude
clang++ -pg -O1 -std=c++17 -fno-rtti -stdlib=libc++ -Wfatal-errors -o main $SRC -Iinclude -ldl
time ./main benchmarks/fib.py
mv benchmarks/gmon.out .
gprof pocketpy gmon.out > gprof.txt

View File

@ -1,6 +1,6 @@
python3 prebuild.py
SRC=$(find src/ -name "*.cpp")
clang++ -std=c++17 -fno-rtti --coverage -O1 -stdlib=libc++ -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude
clang++ -std=c++17 -fno-rtti --coverage -O1 -stdlib=libc++ -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -ldl
python3 scripts/run_tests.py
rm -rf .coverage
mkdir .coverage