Compile without generating code
Moritz Maxeiner via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jul 7 05:44:02 PDT 2017
On Friday, 7 July 2017 at 11:14:40 UTC, Suliman wrote:
> On Wednesday, 5 July 2017 at 22:05:53 UTC, Stefan Koch wrote:
>> On Wednesday, 5 July 2017 at 21:58:45 UTC, Lewis wrote:
>>> I was reading
>>> https://blog.rust-lang.org/2017/07/05/Rust-Roadmap-Update.html, which mentioned that the Rust compiler now has a mode to go through the motions of compiling and show errors, but without generating any code. This way you can do a much faster build while iterating until you have no compile errors, then do a single build with code generation once everything looks good.
>>>
>>> [...]
>>
>> We already have it.
>> use -o- and it'll disable codegen.
>
>
> How to use this parameter with dub?
Via `dflags` [1][2]
[1] https://code.dlang.org/package-format?lang=json#build-settings
[2] https://code.dlang.org/package-format?lang=sdl#build-settings
More information about the Digitalmars-d
mailing list