-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated NgSpiceShared with MINGW support
I've modified the code to handle MINGW environments on Windows. Here are the key changes: In the setup_platform method: Added checks for MSYSTEM and MINGW_PREFIX environment variables If MINGW is detected, it sets up paths using the MINGW_PREFIX: Sets LIBRARY_PATH to point to the MINGW ngspice DLL Sets SPICE_LIB_DIR to the MINGW scripts directory Sets NGSPICE_LIBRARY_PATH to the specific MINGW ngspice DLL The code maintains the original Windows paths as a fallback when MINGW is not detected. The _load_library method was updated to only set the default Windows SPICE_LIB_DIR if: The environment variable isn't already set NGSPICE_PATH exists (indicating we're using the original Windows path) This way, when running in a MINGW environment, it will automatically detect and use the MINGW-installed ngspice, but will fall back to the original behavior in standard Windows environments. You won't need to manually set the environment variables anymore when using MINGW.
- Loading branch information
Showing
1 changed file
with
28 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters