Skip to content

Commit 43ef099

Browse files
CopilotHappypig375
andcommitted
Add debugging and error checking for vcvars64.bat
The tools weren't found despite calling vcvars64.bat. Added: - Error check after vcvars64.bat to ensure it succeeds - where commands to show the actual paths of dumpbin and lib - This will help diagnose why the MSVC tools aren't in the PATH Co-authored-by: Happypig375 <19922066+Happypig375@users.noreply.github.com>
1 parent b25fc67 commit 43ef099

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/CPPBuild.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,14 @@ jobs:
6868
shell: cmd
6969
run: |
7070
call "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
71+
if errorlevel 1 (
72+
echo ERROR: Failed to initialize MSVC environment
73+
exit /b 1
74+
)
7175
cd Sources/Wrappers/AngouriMath.CPP.Importing/out-x64
76+
echo Checking for dumpbin and lib...
77+
where dumpbin
78+
where lib
7279
dumpbin /exports AngouriMath.CPP.Exporting.dll > exports.txt
7380
echo LIBRARY AngouriMath.CPP.Exporting > AngouriMath.CPP.Exporting.def
7481
echo EXPORTS >> AngouriMath.CPP.Exporting.def

0 commit comments

Comments
 (0)