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 (#2659)

Options for a static build and enabling more compiler warnings

authored by

Alice and committed by
GitHub
aa1e0d5f b1bbd565

+23
+23
debug-macos.sh
··· 6 6 DEBUG=false 7 7 MACPORTS=false 8 8 HOMEBREW=false 9 + STATIC=false 10 + WARNINGS=false 9 11 BUILD_TYPE="MinSizeRel" 10 12 COMPILER_FLAGS="" 11 13 DEBUG_FLAGS="" 12 14 PRO_VERSION_FLAG="" 15 + STATIC_FLAG="" 16 + WARNING_FLAGS="-Wall -Wextra" 13 17 14 18 while (( "$#" )); do 15 19 case "$1" in ··· 35 39 ;; 36 40 -h|--homebrew) 37 41 HOMEBREW=true 42 + shift 43 + ;; 44 + -s|--static) 45 + STATIC=true 46 + shift 47 + ;; 48 + -w|--warnings) 49 + WARNINGS=true 38 50 shift 39 51 ;; 40 52 --) ··· 102 114 echo "Using clang at $(which clang) and clang++ at $(which clang++) from Homebrew" 103 115 fi 104 116 117 + if [ "$STATIC" = true ]; then 118 + STATIC_FLAG="-DBUILD_STATIC=On" 119 + fi 120 + 121 + if [ "$WARNINGS" = true ]; then 122 + COMPILER_FLAGS="$COMPILER_FLAGS -DCMAKE_C_FLAGS=$WARNING_FLAGS -DCMAKE_CXX_FLAGS=$WARNING_FLAGS" 123 + fi 124 + 105 125 echo 106 126 echo "+--------------------------------+-------+" 107 127 echo "| Build Options | Value |" ··· 112 132 echo "| Debug build (-d, --debug) | $(printf "%-5s" $([ "$DEBUG" = true ] && echo "Yes" || echo "No")) |" 113 133 echo "| MacPorts (-m, --macports) | $(printf "%-5s" $([ "$MACPORTS" = true ] && echo "Yes" || echo "No")) |" 114 134 echo "| Homebrew (-h, --homebrew) | $(printf "%-5s" $([ "$HOMEBREW" = true ] && echo "Yes" || echo "No")) |" 135 + echo "| Static build (-s, --static) | $(printf "%-5s" $([ "$STATIC" = true ] && echo "Yes" || echo "No")) |" 136 + echo "| Warnings (-w, --warnings) | $(printf "%-5s" $([ "$WARNINGS" = true ] && echo "Yes" || echo "No")) |" 115 137 echo "+--------------------------------+-------+" 116 138 echo 117 139 ··· 122 144 -DBUILD_SDLGPU=On \ 123 145 $DEBUG_FLAGS \ 124 146 $COMPILER_FLAGS \ 147 + $STATIC_FLAG \ 125 148 -DBUILD_WITH_ALL=On \ 126 149 -DCMAKE_EXPORT_COMPILE_COMMANDS=On \ 127 150 .. && \