Skip to content

Commit

Permalink
riviera-pro: handle empty macro (#681)
Browse files Browse the repository at this point in the history
* Workaround for empty macro issue in Riviera-PRO
* Update rivierapro.py

Workaround for empty macro issue in Riviera-PRO - more elegant solution
  • Loading branch information
pib88 authored Sep 23, 2020
1 parent e96eed6 commit f1dacbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vunit/sim_if/rivierapro.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ def compile_verilog_file_command(self, source_file):
for include_dir in source_file.include_dirs:
args += ["+incdir+%s" % include_dir]
for key, value in source_file.defines.items():
args += ["+define+%s=%s" % (key, value)]
args += ["+define+%s" % key]
if value:
args[-1] += "=%s" % value
return args

def create_library(self, library_name, path, mapped_libraries=None):
Expand Down

0 comments on commit f1dacbe

Please sign in to comment.