"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
This commit is contained in:
Holger Vogt 2025-01-08 19:46:10 +01:00
parent 1b7c8eb2d7
commit 6e5d084a02
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ CL.EXE /O2 /LD /EHsc /Feivlng.DLL /I%src% /I%inc% %src%\icarus_shim.c ^
rem Make a dummy libvvp.obj, needed for shim.vpi (to be renamed ivlng.vpi).
lib.exe /def:%src%\libvvp.def /machine:X64
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

View File

@ -88,7 +88,7 @@
<ItemDefinitionGroup>
<PreBuildEvent>
<Message>Generate Iverilog support, cfunc.c and ifspec.c files</Message>
<Command>call .\aux-digital.bat $(ProjectName)</Command>
<Command>call .\aux-digital.bat $(ProjectName) $(PlatformTarget)</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
@ -400,4 +400,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>