From 97515819d7025d0f63343abe0a28400ca0431d86 Mon Sep 17 00:00:00 2001 From: BLUELOVETH Date: Fri, 14 Jul 2023 17:40:47 +0800 Subject: [PATCH] ... --- .github/workflows/main.yml | 4 ++-- run_profile.sh | 2 +- run_tests.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 710b4071..8e1f7ab8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/run_profile.sh b/run_profile.sh index 1f3aca0e..18acc550 100644 --- a/run_profile.sh +++ b/run_profile.sh @@ -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 diff --git a/run_tests.sh b/run_tests.sh index bb62e150..60dcb8ad 100644 --- a/run_tests.sh +++ b/run_tests.sh @@ -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