use ENABLE_TRACING from user defines

This commit is contained in:
Nick Fisher
2025-06-21 10:14:43 +08:00
parent 5f92c7feab
commit a01bf36576

View File

@@ -26,7 +26,7 @@ void main(List<String> args) async {
final packageName = input.packageName;
final outputDirectory = input.outputDirectory;
final targetOS = config.code.targetOS;
final targetArchitecture = config.code.targetArchitecture;
var logPath = path.join(
pkgRootFilePath, ".dart_tool", "thermion_dart", "log", "build.log");
@@ -125,12 +125,11 @@ void main(List<String> args) async {
final flags = []; //"-fsanitize=address"];
final defines = <String, String?>{
// uncomment this to enable (very verbose) trace logging
"ENABLE_TRACING": input.userDefines["tracing"] == null ? "0" : "1"
};
final defines = <String, String?>{};
if ((input.userDefines["tracing"] as String?)?.isNotEmpty == true) {
defines["ENABLE_TRACING"] = "1";
}
var frameworks = [];
if (platform != "windows") {