From 937e893b6d689a641d2d0be91cfec1f40ff05dca Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Sat, 3 Sep 2022 22:10:07 +0100 Subject: [PATCH] Build verilator_bin with -O3 (#3592) This is consistently a few percent faster. --- src/Makefile_obj.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile_obj.in b/src/Makefile_obj.in index 140be6086..1496cc411 100644 --- a/src/Makefile_obj.in +++ b/src/Makefile_obj.in @@ -79,7 +79,7 @@ ifeq ($(VL_NOOPT),1) CPPFLAGS += -O0 else ifeq ($(VL_DEBUG),) # Optimize -CPPFLAGS += -O2 +CPPFLAGS += -O3 else # Debug CPPFLAGS += @CFG_CXXFLAGS_DEBUG@ -DVL_DEBUG -D_GLIBCXX_DEBUG