Dub and it's build directory

Seb seb at wilzba.ch
Tue Aug 21 16:00:24 UTC 2018


On Tuesday, 21 August 2018 at 12:31:20 UTC, Petar Kirov 
[ZombineDev] wrote:
> What Dub does is what it calls "platform probing" [3]. It 
> creates a temporary .d file containing various `pragma (msg, 
> ..)` statements that output information to stderr during 
> compilation. Of course the question is then: which compiler is 
> used to compile the platform probe file? AFAICS, it uses either 
> the one requested for on the command-line (via --compiler=... ) 
> or via an internal heuristic which is a bit involved [4].

FYI: the plan is to use the new JSON interface (e.g. `dmd 
-Xi=compilerInfo -Xf=-) soon.

See also: https://github.com/dlang/dub/pull/1316


More information about the Digitalmars-d-learn mailing list