Skip to content

Commit

Permalink
check for jit option
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Perro committed May 8, 2024
1 parent 17ffad0 commit a761c25
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions vunit/sim_if/nvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from sys import stdout # To avoid output catched in non-verbose mode
from ..exceptions import CompileError
from ..ostools import Process
from . import SimulatorInterface, ListOfStringOption, StringOption
from . import SimulatorInterface, ListOfStringOption, StringOption, BooleanOption
from . import run_command
from ..vhdl_standard import VHDL

Expand Down Expand Up @@ -88,7 +88,6 @@ def __init__( # pylint: disable=too-many-arguments

(major, minor) = self.determine_version(prefix)
self._supports_jit = major > 1 or (major == 1 and minor >= 9)
self._disable_jit = False
if self.use_color:
environ["NVC_COLORS"] = "always"

Expand Down Expand Up @@ -270,12 +269,9 @@ def simulate(self, output_path, test_suite_name, config, elaborate_only): # pyl
for name, value in config.generics.items():
cmd += [f"-g{name}={value}"]

if config.sim_options.get("nvc.disable_jit", True):
self._disable_jit = True

if not elaborate_only:
cmd += ["--no-save"]
if self._supports_jit and not self._disable_jit:
if self._supports_jit and not config.sim_options.get("nvc.disable_jit", False):
cmd += ["--jit"]
cmd += ["-r"]
cmd += config.sim_options.get("nvc.sim_flags", [])
Expand Down

0 comments on commit a761c25

Please sign in to comment.