mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +00:00
Fix -CFLAGS to allow overriding optimization levels (#4140).
This commit is contained in:
parent
5a98c1a3b1
commit
cbeb9d39ff
1
Changes
1
Changes
@ -42,6 +42,7 @@ Verilator 5.009 devel
|
|||||||
* Fix false error on new const assignment (#4098). [Tudor Timi]
|
* Fix false error on new const assignment (#4098). [Tudor Timi]
|
||||||
* Fix unpacked structs under classes (#4102). [Tudor Timi]
|
* Fix unpacked structs under classes (#4102). [Tudor Timi]
|
||||||
* Fix DFG error on $countbits (#4101). [Paul Donahue]
|
* Fix DFG error on $countbits (#4101). [Paul Donahue]
|
||||||
|
* Fix -CFLAGS to allow overriding optimization levels (#4140). [Peter Monsson]
|
||||||
* Fix false ENUMVALUE on expressions and arrays.
|
* Fix false ENUMVALUE on expressions and arrays.
|
||||||
* Fix unnecessary verilated_std.sv waivers in --waiver-output.
|
* Fix unnecessary verilated_std.sv waivers in --waiver-output.
|
||||||
|
|
||||||
|
@ -235,14 +235,16 @@ $(VM_PREFIX)__ALL.a: $(VK_OBJS) $(VM_HIER_LIBS)
|
|||||||
ifneq ($(VM_DEFAULT_RULES),0)
|
ifneq ($(VM_DEFAULT_RULES),0)
|
||||||
# Anything not in $(VK_SLOW_OBJS) or $(VK_GLOBAL_OBJS), including verilated.o
|
# Anything not in $(VK_SLOW_OBJS) or $(VK_GLOBAL_OBJS), including verilated.o
|
||||||
# and user files passed on the Verilator command line use this rule.
|
# and user files passed on the Verilator command line use this rule.
|
||||||
|
# We put OPT_FAST/OPT_SLOW/OPT_GLOBAL before the other flags to
|
||||||
|
# allow USER_CPPFLAGS to override them
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(OBJCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(OPT_FAST) -c -o $@ $<
|
$(OBJCACHE) $(CXX) $(OPT_FAST) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
$(VK_SLOW_OBJS): %.o: %.cpp
|
$(VK_SLOW_OBJS): %.o: %.cpp
|
||||||
$(OBJCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(OPT_SLOW) -c -o $@ $<
|
$(OBJCACHE) $(CXX) $(OPT_SLOW) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
$(VK_GLOBAL_OBJS): %.o: %.cpp
|
$(VK_GLOBAL_OBJS): %.o: %.cpp
|
||||||
$(OBJCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(OPT_GLOBAL) -c -o $@ $<
|
$(OBJCACHE) $(CXX) $(OPT_GLOBAL) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#Default rule embedded in make:
|
#Default rule embedded in make:
|
||||||
|
Loading…
Reference in New Issue
Block a user