Skip to content

Commit 55e4ac9

Browse files
author
Rafal Kapuscik
committed
Pass extra_args unless linking UHDM
Signed-off-by: Rafal Kapuscik <[email protected]>
1 parent e0652c8 commit 55e4ac9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

systemverilog-plugin/uhdmcommonfrontend.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ void UhdmCommonFrontend::execute(std::istream *&f, std::string filename, std::ve
121121
unhandled_args.push_back(args[i]);
122122
}
123123
}
124+
// Yosys gets confused when extra_args are passed with -link or no option
125+
// It's done fully by Surelog, so skip it in this case
126+
if (!this->shared.link)
127+
extra_args(f, filename, args, args.size() - 1);
124128
// pass only unhandled args to Surelog
125129
// unhandled args starts with command name,
126130
// but Surelog expects args[0] to be program name

0 commit comments

Comments
 (0)