From 14c57bf5fdbd97bb0e132eb419142249e5106a1d Mon Sep 17 00:00:00 2001 From: Eryk Szpotanski Date: Mon, 29 Jul 2024 13:43:59 +0200 Subject: [PATCH] VerilatorSimulator: Update default CFLAGS to avoid invalid PCH error Signed-off-by: Eryk Szpotanski --- src/main/scala/chiseltest/simulator/VerilatorSimulator.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/scala/chiseltest/simulator/VerilatorSimulator.scala b/src/main/scala/chiseltest/simulator/VerilatorSimulator.scala index 3a200305..a4b19217 100644 --- a/src/main/scala/chiseltest/simulator/VerilatorSimulator.scala +++ b/src/main/scala/chiseltest/simulator/VerilatorSimulator.scala @@ -229,12 +229,11 @@ private object VerilatorSimulator extends Simulator { } private def DefaultCFlags(topName: String) = List( - "-O1", + "-Os", "-DVL_USER_STOP", "-DVL_USER_FATAL", "-DVL_USER_FINISH", // this is required because we ant to overwrite the vl_finish function! - s"-DTOP_TYPE=V$topName", - s"-include V$topName.h" + s"-DTOP_TYPE=V$topName" ) private def DefaultFlags(topName: String, verilatedDir: os.Path, cFlags: Seq[String], ldFlags: Seq[String]) = List(