diff --git a/build.sh b/build.sh index 877f3da3446fe6eda7b4ba5e298bb7380d284233..c723c3d5f6cb684a828829118a1578722a2ffb57 100755 --- a/build.sh +++ b/build.sh @@ -58,7 +58,11 @@ VALIDATE_BUILD_TYPE $BUILD_TYPE if [ "${BUILD_TYPE}" = "debug" ]; then BUILD_OPTIONS[${#BUILD_OPTIONS[@]}]="-DCMAKE_BUILD_TYPE=Debug" else - BUILD_OPTIONS[${#BUILD_OPTIONS[@]}]="-DCMAKE_BUILD_TYPE=Release" + if [ "${BUILD_TYPE}" = "rwd" ]; then + BUILD_OPTIONS[${#BUILD_OPTIONS[@]}]="-DCMAKE_BUILD_TYPE=RelWithDebInfo" + else + BUILD_OPTIONS[${#BUILD_OPTIONS[@]}]="-DCMAKE_BUILD_TYPE=Release" + fi fi . ${HERE}/targets/${BUILD_TARGET}.sh diff --git a/validate.sh b/validate.sh index 327473f3977be111ab7ee5b43474990ac94dfe69..de0e7882c3d6376aeb64701a62943946cfbdc1df 100644 --- a/validate.sh +++ b/validate.sh @@ -17,7 +17,7 @@ containsElement () { TARGETS=(linux windows android osx) -BUILD_TYPES=(release debug) +BUILD_TYPES=(release debug rwd) VALIDATE_TARGET() {