Hi,

you don't need to create json-files per d-file. I added the -Xf option to the lib-generating line in druntime/win32.mak:

################### Library generation #########################

$(DRUNTIME): $(OBJS) $(SRCS) win32.mak
$(DMD) -lib -Xf..\json\druntime.json -of$(DRUNTIME) $(DFLAGS) $(SRCS) $(OBJS)

and the same to phobos/win32.mak:

phobos.lib : $(OBJS) $(SRCS) \
        etc\c\zlib\zlib.lib $(DRUNTIMELIB) win32.mak
$(DMD) -lib -ofphobos.lib -Xf..\json\phobos.json $(DFLAGS) $(SRCS) $(OBJS) \
                etc\c\zlib\zlib.lib $(DRUNTIMELIB)

and you will get only two json files. (This will leave out files in $(OBJS), but i think, their separate compilation seems not be necessary with the compile-everything-command above).


Regan Heath wrote:
Regan Heath wrote:
I highlight BufferedFile and press F12, or right-click and choose "Go To Definition" and it doesn't work :(

Ok, my mistake was creating the JSON files in a tree, a flat structure works. :)

R

Reply via email to