> Hi there... Im trying to update a single driver. I have removed all the other drivers > from the .lst file, but when I compile, I still end up with a 138M hbmame64.exe... I > thought there was an easy way to limit the build so it could compile and link pretty > quick? > > I tried with SOURCES= in the make command to a single driver, but my hbmame64.exe was > still 138M. > > make PTR64=1 TARGET=hbmame SOURCES=/src/hbmame/drivers/mhavoc.cpp > > thanks!
The main problem with linking is not MAME, or the number of drivers, but the default linker being absolute awful. Even on a single driver build, from an SSD, it can take 8 minutes to link here for every minor change.
If you type set ARCHOPTS=-fuse-ld=lld before doing the initial 'make' that builds the scripts, then you use the alternate linker, which links, basically instantaneously.
Quite how / why the default linker is so bad I don't know.
There are downsides to this, I believe it was mentioned it doesn't work properly with the debug symbols and such (haven't tested, as I haven't needed to recently) but for day to day MAME development it's basically essential.
|