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

timotheecour timothee.cour2 at gmail.com
Sat Jan 27 01:10:35 UTC 2018


On Saturday, 27 January 2018 at 00:47:01 UTC, timotheecour wrote:
> on OSX:
> chmod u+x main.d
> ./main.d
>
> WARNING: A deprecated branch based version specification is 
> used for the dependency dmd. Please use numbered versions 
> instead. Also note that you can still use the 
> dub.selections.json file to override a certain dependency to 
> use a branch instead.
> Invalid source/import path: 
> /Users/timothee/.dub/packages/dmd-master/dmd/generated/dub
> core.exception.AssertError at ../../../../../.dub/packages/dmd-master/dmd/src/dmd/frontend.d(208): No valid config found.

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


More information about the Digitalmars-d mailing list