2 Commits

Author SHA1 Message Date
Abdelrahman Said
81e3ab2c67 Switch to using intercept build since OSX [SIP](https://en.wikipedia.org/wiki/System_Integrity_Protection) stop bear from working 2025-08-16 13:25:38 +01:00
Abdelrahman Said
8ec0757b34 Add .venv to gitignore 2025-08-16 13:25:28 +01:00
2 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
.cache
.vscode
.venv
test
test.*
*.dSYM

12
build
View File

@@ -1,6 +1,7 @@
#!/bin/bash
BUILD_TYPE="debug"
KERNEL="$(uname -s)"
ARGS=""
while [[ $# > 0 ]];do
@@ -17,4 +18,15 @@ while [[ $# > 0 ]];do
esac
done
if [[ $KERNEL == "Darwin" ]]; then
if [[ ! -d .venv ]]; then
python3 -m venv .venv
fi
source .venv/bin/activate
pip install scan-build
intercept-build make CC=intercept-cc CXX=intercept-c++ BUILD_TYPE=$BUILD_TYPE $ARGS
deactivate
else
bear -- make BUILD_TYPE=$BUILD_TYPE $ARGS
fi