Files
ngspice/visualc/xspice/aux-digital.bat
Holger Vogt 6e5d084a02 "x64" was hardcoded into aux-digital.bat and is used in the compiling of digital.vcxproj.
That's problematic for trying to compile x86 or ARM64.

This patch makes digital.vcxproj pass the arch as arg2 to aux-digital.bat

Patch #120 provided by Mark Roszko
2025-01-09 13:21:15 +01:00

19 lines
653 B
Batchfile

rem Pre-build commands for digital.cm.
rem Make support components for Icarus Verilog co-simulation:
rem ivlng.dll and ivlng.vpi. Then run aux-cfunc.bat.
md verilog
pushd verilog
set src=..\..\..\src\xspice\verilog
set inc=..\..\..\src\include
CL.EXE /O2 /LD /EHsc /Feivlng.DLL /I%src% /I%inc% %src%\icarus_shim.c ^
/link /EXPORT:Cosim_setup /EXPORT:Get_ng_vvp
rem Make a dummy libvvp.obj, needed for shim.vpi (to be renamed ivlng.vpi).
lib.exe /def:%src%\libvvp.def /machine:%2
CL.EXE /O2 /LD /EHsc /Feshim.vpi /I. /I%inc% %src%\vpi.c libvvp.lib ivlng.lib /link /DLL /EXPORT:vlog_startup_routines
dir
popd
.\aux-cfunc.bat digital