Slow file compiled with OPT_FAST when --output-split is used
Hi, I'm trying to speed up the build time of a moderately large verilator model.
So I'm verilating with --output-split 20000 and compiling with VM_PARALLEL_BUILDS=1 OPT_FAST="-O1 -fstrict-aliasing"
This combination of options results in a 'slow' file being compiled with the OPT_FAST options, which for my design causes a ~60MB C file to be compiled for ~1hour.
The problem is that verilator creates Vmydesign__Trace__Slow__1.cpp which is picked up not by this rule
$(VM_PREFIX)%__Slow.o: $(VM_PREFIX)%__Slow.cpp $(OBJCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(OPT_SLOW) -c -o $@ $<but instead by
$(VM_PREFIX)%.o: $(VM_PREFIX)%.cpp $(OBJCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(OPT_FAST) -c -o $@ $<
in verilator/include/verilated.mk The adding of __1 by the --output-split is incompatible with the make rules.
(verilator-4.006, ccache and clang-6.0)
Also available in: Atom