diff --git a/CMakeLists.txt b/CMakeLists.txt index 6743ede..84d1091 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -292,7 +292,13 @@ function(use_townengine target sources output_directory data_dir) string(JOIN "\n" TWN_BOOTSTRAP_SH "#!/bin/env sh" "cd \"$(dirname \"$0\")\"" - "LD_LIBRARY_PATH=./ ./launcher ${TWN_BOOTSTRAP_EXEC_ARGS}" + "export LD_LIBRARY_PATH=./" + "if [ \$1 = \"web\" ]; then" + " unset DEBUGINFOD_URLS" + " gdb -ex run --args ./launcher ${TWN_BOOTSTRAP_EXEC_ARGS}" + "else" + " ./launcher ${TWN_BOOTSTRAP_EXEC_ARGS}" + "fi" "") FILE(GENERATE OUTPUT ${output_directory}/${target}