dmd -Wl=comma_separated_linker_flags (cf clang++ -Wl, comma_separated_linker_flags)

Timothee Cour via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 22 10:32:30 PST 2017


> You can pass multiple -L flags:
>
> dmd -L-lbar -L-Ldir -L--export-dynamic

I know, but that's inconvenient.
Would make things a lot easier if we had something like what i suggested:

`-Wl=comma_separated_linker_flags`

advantages: could seemlessly use `comma_separated_linker_flags` with
either dmd or rdmd (compile + link in 1 stage) or 2 stages (compile w
dmd followed by link w clang [or ld]) or make it easier to migrate
code from build tools from C echosystem, or integrate seemlessly with
ldc etc.


More information about the Digitalmars-d mailing list