use debug libs in debug mode

This commit is contained in:
Nick Fisher
2024-06-01 12:17:20 +08:00
parent 161abced39
commit 3b168d7a83

View File

@@ -11,7 +11,8 @@ import 'package:native_toolchain_c/native_toolchain_c.dart';
void main(List<String> args) async { void main(List<String> args) async {
await build(args, (config, output) async { await build(args, (config, output) async {
var platform = config.targetOS.toString().toLowerCase(); var platform = config.targetOS.toString().toLowerCase();
var libDir = "${config.packageRoot.toFilePath()}/native/lib/$platform/";
var libDir = "${config.packageRoot.toFilePath()}/native/lib/$platform/${config.dryRun ? "debug" : config.buildMode == BuildMode.debug ? "debug" : "release"}";
final packageName = config.packageName; final packageName = config.packageName;