From 81e3ab2c679908bd421905c9f7291223d66ea24c Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Sat, 16 Aug 2025 13:25:38 +0100 Subject: [PATCH] Switch to using intercept build since OSX [SIP](https://en.wikipedia.org/wiki/System_Integrity_Protection) stop bear from working --- build | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/build b/build index 7087aab..94512f0 100755 --- a/build +++ b/build @@ -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 -bear -- make BUILD_TYPE=$BUILD_TYPE $ARGS +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