Profiler Speed
Denis Koroskin
2korden at gmail.com
Fri Jan 16 12:48:38 PST 2009
On Fri, 16 Jan 2009 22:47:26 +0300, BCS <ao at pathlink.com> wrote:
> Reply to bearophile,
>
>> Bill Baxter:
>>
>>> That's a good point. I never think of stuff like that because I use
>>> dsss most of the time.
>>> You want per-file flags? Ha! Dsss laughs at you. Unfortunately.
>>> :-(
>> I usually compile programs with bud, that applies the same thing to
>> all modules. I presume as dsss.
>> As soon as Walter realizes that's a quite natural way to use D (that
>> is, to let something (possibly the compiler) find the modules it needs
>> by itself. LDC may eventually grow this essential feature), he may
>> think about ways to influence the compiler from the code itself,
>> creating compiler directives that can be embedded in the code (as in
>> Pascal).
>> I am not sure this is the best good solution, maybe there are better
>> solutions, like improving those tools (or the compiler) to allow a
>> finer specification of the compilation flags.
>> Bye,
>> bearophile
>
> A better way to go could be to have a config file passed to DMD that has
> a long list of "codefile.d: -flags" and let DMD pick the correct flags
> to append to the command line
>
>
You can't set version (and some other options) on per-file basis. Your best bet would be having two (or more) passes with different files and compilation options.
More information about the Digitalmars-d
mailing list