From: Thomas Debesse Date: Thu, 25 Mar 2021 22:42:04 +0000 (+0100) Subject: macos: add --debug option to NetRadiant build to run with lldb X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4c0c29d7d69fafbc78745529945094dc1e58edb0;p=xonotic%2Fnetradiant.git macos: add --debug option to NetRadiant build to run with lldb --- diff --git a/setup/macos/NetRadiant b/setup/macos/NetRadiant index 68a151e1..21933a16 100755 --- a/setup/macos/NetRadiant +++ b/setup/macos/NetRadiant @@ -47,4 +47,11 @@ then export GTK2_RC_FILES="${gtkrc_file}" fi -exec ./netradiant "${@}" +if [ "${1}" = '--debug' ] +then + shift + export PATH="/usr/bin:${PATH}" + exec lldb ./netradiant "${@}" +else + exec ./netradiant "${@}" +fi