From d9aa90350c79ad568b389d019d822328d0dcac35 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 23 Oct 2024 16:40:30 +1100 Subject: [PATCH] feat: produce debug symbols on Windows --- thermion_dart/hook/build.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/thermion_dart/hook/build.dart b/thermion_dart/hook/build.dart index 84583c5f..2482fc37 100644 --- a/thermion_dart/hook/build.dart +++ b/thermion_dart/hook/build.dart @@ -21,7 +21,9 @@ void main(List args) async { var platform = config.targetOS.toString().toLowerCase(); - logger.info("Building Thermion for ${config.targetOS} in mode ${config.buildMode.name}"); + if(!config.dryRun) { + logger.info("Building Thermion for ${config.targetOS} in mode ${config.buildMode.name}"); + } // We don't support Linux (yet), so the native/Filament libraries won't be // compiled/available. However, we still want to be able to run the Dart @@ -109,7 +111,7 @@ void main(List args) async { if (platform != "windows") { flags.addAll(['-std=c++17']); - } else { + } else if(!config.dryRun) { defines["WIN32"] = "1"; defines["_DLL"] = "1"; if(config.buildMode == BuildMode.debug) { @@ -121,7 +123,7 @@ void main(List args) async { flags.addAll([ "/std:c++20", if(config.buildMode == BuildMode.debug) - "/MDd", + ...["/MDd","/Zi"], if(config.buildMode == BuildMode.release) "/MD", "/VERBOSE", @@ -326,4 +328,4 @@ Future getLibDir(BuildConfig config, Logger logger) async { successToken.writeAsStringSync("SUCCESS"); } return libDir; -} +} \ No newline at end of file