The VPI module path should be first in the lib_args parameter.
This commit is contained in:
parent
6c518d4212
commit
f8c9da5ed5
|
|
@ -204,8 +204,8 @@ void *run_ghdl(void *arg)
|
|||
|
||||
/* Determing the file name for our VPI module. */
|
||||
|
||||
if (pinfo->lib_argc >= 2 && pinfo->lib_argv[1][0]) // Explicit VPI file.
|
||||
file = pinfo->lib_argv[1];
|
||||
if (pinfo->lib_argc >= 1 && pinfo->lib_argv[0][0]) // Explicit VPI file.
|
||||
file = pinfo->lib_argv[0];
|
||||
else
|
||||
file = "./ghdlng.vpi";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue