this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update debug-macos.sh; current bug is not in glew

alice b0edb027 f849fbcd

+24 -11
+24 -11
debug-macos.sh
··· 1 1 #!/bin/bash 2 2 FRESH_FLAG="" 3 - if [ "$1" == "-f" ]; then 4 - FRESH_FLAG="--fresh" 5 - fi 3 + CLEAN_FLAG="" 4 + DEBUG_FLAGS="" 5 + 6 + for arg in "$@" 7 + do 8 + case $arg in 9 + -f) 10 + FRESH_FLAG="--fresh" 11 + ;; 12 + -c) 13 + CLEAN_FLAG="--clean-first" 14 + ;; 15 + -d) 16 + DEBUG_FLAGS="-DBUILD_NO_OPTIMIZATION=On -DBUILD_ASAN_DEBUG=On -DBUILD_LSAN_DEBUG=On -DBUILD_UNDEFINED_DEBUG=On" 17 + ;; 18 + esac 19 + done 6 20 7 21 cd ./build || exit 8 - export PATH="/opt/homebrew/opt/llvm/bin:$PATH" && \ 9 - export LDFLAGS="-L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++" && \ 10 - export BUILD_TYPE=Debug && \ 22 + 23 + export PATH="/opt/homebrew/opt/llvm/bin:$PATH" 24 + export LDFLAGS="-L/opt/homebrew/opt/llvm/lib/c++ -Wl,-rpath,/opt/homebrew/opt/llvm/lib/c++" 25 + export BUILD_TYPE=Debug 26 + 11 27 cmake -DCMAKE_BUILD_TYPE="$BUILD_TYPE" \ 12 28 -DBUILD_PRO=On \ 13 29 -DBUILD_SDLGPU=On \ 14 - -DBUILD_NO_OPTIMIZATION=On \ 15 - -DBUILD_ASAN_DEBUG=On \ 16 - -DBUILD_LSAN_DEBUG=On \ 17 - -DBUILD_UNDEFINED_DEBUG=On \ 30 + "$DEBUG_FLAGS" \ 18 31 -DCMAKE_C_COMPILER="$(which clang)" \ 19 32 -DCMAKE_CXX_COMPILER="$(which clang++)" \ 20 33 .. $FRESH_FLAG && \ 21 - cmake --build . --config "$BUILD_TYPE" --parallel 34 + cmake --build . --config "$BUILD_TYPE" --parallel $CLEAN_FLAG