Skip to content

Commit

Permalink
Add the debug target only if the debug environment is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Mar 26, 2023
1 parent f8ddebc commit d85e8f6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion tools/macos_arm64-cross-release_buildenv.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
BUILDENV_ARM64=TRUE BUILDENV_RELEASE=TRUE ./macos_buildenv.sh "$@"
tools_path=$(dirname "$0")
BUILDENV_ARM64=TRUE BUILDENV_RELEASE=TRUE "${tools_path}/macos_buildenv.sh" "$@"
3 changes: 2 additions & 1 deletion tools/macos_arm64-cross_buildenv.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
BUILDENV_ARM64=TRUE ./macos_buildenv.sh "$@"
tools_path=$(dirname "$0")
BUILDENV_ARM64=TRUE "${tools_path}/macos_buildenv.sh" "$@"
3 changes: 2 additions & 1 deletion tools/macos_release_buildenv.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
BUILDENV_RELEASE=TRUE ./macos_buildenv.sh "$@"
tools_path=$(dirname "$0")
BUILDENV_RELEASE=TRUE "${tools_path}/macos_buildenv.sh" "$@"
4 changes: 3 additions & 1 deletion tools/windows_buildenv.bat
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ REM Generate CMakeSettings.json which is read by MS Visual Studio to determine t

>>"%CMakeSettings%" echo "configurations": [
SET configElementTermination=,
CALL :Configuration2CMakeSettings_JSON off Debug
IF NOT DEFINED BUILDENV_RELEASE (
CALL :Configuration2CMakeSettings_JSON off Debug
)
CALL :Configuration2CMakeSettings_JSON legacy RelWithDebInfo
CALL :Configuration2CMakeSettings_JSON portable RelWithDebInfo
SET configElementTermination=
Expand Down
2 changes: 1 addition & 1 deletion tools/windows_release_buildenv.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@ECHO OFF
set DEFINED BUILDENV_RELEASE=TRUE && call windows_buildenv.bat %* & set DEFINED BUILDENV_RELEASE=
set DEFINED BUILDENV_RELEASE=TRUE && call "%~dp0windows_buildenv.bat" %* & set DEFINED BUILDENV_RELEASE=

0 comments on commit d85e8f6

Please sign in to comment.