The VPI module path should be first in the lib_args parameter.

This commit is contained in:
Giles Atkinson 2025-02-08 18:09:37 +00:00 committed by Holger Vogt
parent 6c518d4212
commit f8c9da5ed5
1 changed files with 2 additions and 2 deletions

View File

@ -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";