On Friday, 31 May 2019 at 10:47:20 UTC, Mike Parker wrote:
On Friday, 31 May 2019 at 10:27:44 UTC, Anonymouse wrote:
What is the correct way?
--DRT flags are for run time, not compile time. They're
intended to be passed to your executable and not the compiler.
From the docs :
"By default, GC options can only be passed on the command line
of the program to run"
With dub, anything following a solitary -- on the command line
will be passed to the application , so you probably want
something like this:
dub test -- --DRT-gcopt=profile:1
This might be eaten by the runtime of dub and not the application.