We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d7f282 commit 6d4db3eCopy full SHA for 6d4db3e
src/wrapper/simulation/SimulationTool.cpp
@@ -316,7 +316,12 @@ std::string SimulationTool::GenerateSimulationScript(const std::string& top_file
316
317
if(has_user_elf)
318
{
319
- script << "SYS_ELF=\"" << Param->getOption<std::string>(OPT_testbench_input_file).substr(4) << "\"\n";
+ std::filesystem::path elf_path(Param->getOption<std::string>(OPT_testbench_input_file).substr(4));
320
+ if(!elf_path.is_absolute() && elf_path.parent_path() != ".")
321
+ {
322
+ elf_path = std::filesystem::path(".") / elf_path;
323
+ }
324
+ script << "SYS_ELF=" << elf_path << "\n";
325
}
326
else
327
0 commit comments