Compare commits
2 Commits
eb98de7c2b
...
81e3ab2c67
Author | SHA1 | Date | |
---|---|---|---|
|
81e3ab2c67 | ||
|
8ec0757b34 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
.cache
|
.cache
|
||||||
.vscode
|
.vscode
|
||||||
|
.venv
|
||||||
test
|
test
|
||||||
test.*
|
test.*
|
||||||
*.dSYM
|
*.dSYM
|
||||||
|
12
build
12
build
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
BUILD_TYPE="debug"
|
BUILD_TYPE="debug"
|
||||||
|
KERNEL="$(uname -s)"
|
||||||
ARGS=""
|
ARGS=""
|
||||||
|
|
||||||
while [[ $# > 0 ]];do
|
while [[ $# > 0 ]];do
|
||||||
@ -17,4 +18,15 @@ while [[ $# > 0 ]];do
|
|||||||
esac
|
esac
|
||||||
done
|
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
|
bear -- make BUILD_TYPE=$BUILD_TYPE $ARGS
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user