<div dir="ltr"><div><span style="font-size:12.8px">I'd like to have a command line flag for dmd (and ldc,gdc) that would be the analog to:</span><div style="font-size:12.8px">llvm-config --ldflags --cflags</div><div style="font-size:12.8px">ie, would print the corresponding flags used by dmd after following the internal logic (look for dmd.conf in a number of directories, look for DFLAGS environment variable etc).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">one use case among others:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">when using 'dmd -L-Lfoo -lbar ...', i'd like to first guess which linker flags are used by dmd (eg transforming -L-L%@P% into -L-Lsome_path) and then call:</div><div style="font-size:12.8px">'dmd -L-Lsome_path -L-Lfoo -lbar ...'</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Note that what's actually called is instead:<br><div>'dmd -L-Lfoo -lbar ... -L-Lsome_path '</div></div><div style="font-size:12.8px">ie, dmd appends instead of prepends the library search path given by dmd.conf, which leads to weird behavior if foo (from -L-Lfoo) contains an unwanted version of libphobos2</div></div></div>