DMD as a library package can now run through all semantic phases

timotheecour timothee.cour2 at gmail.com
Sat Jan 27 01:42:17 UTC 2018


On Saturday, 27 January 2018 at 01:10:35 UTC, timotheecour wrote:
> On Saturday, 27 January 2018 at 00:47:01 UTC, timotheecour

> the bug is that homebrew dmd installs dmd.conf in 
> /Users/timothee/homebrew/etc/dmd.conf; findDMDConfig should 
> instead look for dmd.conf by calling `dmd -v|grep 'Config 
> file'` (and caching result for each file+time_last_modified) 
> which would be more robust
>
> workaround: hardcode /Users/timothee/homebrew/etc/dmd.conf in 
> findDMDConfig in dmd:src/dmd/frontend.d


Actually an even more robust way to get the conf file:
call dmd -Xf=tempfile and get it from json output
doable once https://github.com/dlang/dmd/pull/7757  is accepted



More information about the Digitalmars-d mailing list