How do you pass the flags to the final exe like -D_DEBUG, /SUBSYSTEM:WINDOWS, -DCMAKE and so on to the final exe thats built when using dart’s newest build hooks, native assets interop method? Cbuilder has flags option when you’re building c dll yourself like this:
dart
LinkerOptions.manual(
flags: ['/SUBSYSTEM:WINDOWS', '/ENTRY:mainCRTStartup'],
);
But when you need to pass flags to final exe itself, is there something like that for final exe? Looking at api and examples and having tried few things randomly, its not been clear to me. I only found outdated information that uses dart compile exe but thats not supported with native assets and you have to use dart build cli command where I’m not sure where or if you can pass the flags.
