vvp: Accept either \ or / as path separators in the -m option (issue #606).
Windows system calls will accept either of these. This is already done in
the iverilog driver.
(cherry picked from commit 2bf753fd8f)
This commit is contained in:
parent
f247fe532f
commit
20b5377989
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2020 Stephen Williams (steve@icarus.com)
|
* Copyright (c) 2001-2022 Stephen Williams (steve@icarus.com)
|
||||||
*
|
*
|
||||||
* This source code is free software; you can redistribute it
|
* This source code is free software; you can redistribute it
|
||||||
* and/or modify it in source code form under the terms of the GNU
|
* and/or modify it in source code form under the terms of the GNU
|
||||||
|
|
@ -151,7 +151,11 @@ void vpip_load_module(const char*name)
|
||||||
|
|
||||||
ivl_dll_t dll = 0;
|
ivl_dll_t dll = 0;
|
||||||
buf[0] = 0; /* terminate the string */
|
buf[0] = 0; /* terminate the string */
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
if (strchr(name, '\\') || strchr(name, '/')) {
|
||||||
|
#else
|
||||||
if (strchr(name, sep)) {
|
if (strchr(name, sep)) {
|
||||||
|
#endif
|
||||||
/* If the name has at least one directory character in
|
/* If the name has at least one directory character in
|
||||||
it, then assume it is a complete name, maybe including any
|
it, then assume it is a complete name, maybe including any
|
||||||
possible .vpi suffix. */
|
possible .vpi suffix. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue