Skip to content

Commit 1edf298

Browse files
committed
Revert "windows build"
This reverts commit 3026dee.
1 parent 35560ea commit 1edf298

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libxtracfg/c/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ REM static
3131
cl.exe /MT /I./ /Fetest.exe /I%JAVA_HOME%/include /I%JAVA_HOME%/include/%PLATFORM% ^
3232
../wrapper/libxtracfg.c ^
3333
../test/main.c ^
34-
libxtracfgjni.lib ^
34+
libxtracfgjni_static.lib ^
3535
C:\hostedtoolcache\windows\graalvm-jdk-21_windows-x64_bin\21.0.0\x64\graalvm-jdk-21.0.9+7.1\lib\svm\clibraries\windows-amd64\libchelper.lib ^
3636
C:\hostedtoolcache\windows\graalvm-jdk-21_windows-x64_bin\21.0.0\x64\graalvm-jdk-21.0.9+7.1\lib\static\windows-amd64\net.lib ^
3737
C:\hostedtoolcache\windows\graalvm-jdk-21_windows-x64_bin\21.0.0\x64\graalvm-jdk-21.0.9+7.1\lib\static\windows-amd64\extnet.lib ^

libxtracfg/c/native-image/static-compiler-windows.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if not exist %LOG_PATH% mkdir %LOG_PATH%
2828
REM Do a simple forward for any calls that are used to compile individual C files
2929
IF "%LIB_NAME%"=="" (
3030
echo Forwarding to cl.exe for compiling C file: %* >> %LOG_FILE%
31-
cmd /c cl.exe %*
31+
cmd /c cl /MT %*
3232
exit /b
3333
)
3434

@@ -42,8 +42,8 @@ echo SHARED LIBRARY >> %LOG_FILE%
4242
echo ===================================================== >> %LOG_FILE%
4343
REM Modify the arguments if needed
4444
set CL_ARGS=%*
45-
REM set "CL_ARGS=%CL_ARGS:/MD /LD=/MT%"
46-
REM set "CL_ARGS=%CL_ARGS:/NODEFAULTLIB:LIBCMT=%"
45+
set "CL_ARGS=%CL_ARGS:/MD /LD=/MT%"
46+
set "CL_ARGS=%CL_ARGS:/NODEFAULTLIB:LIBCMT=%"
4747
echo cl.exe %CL_ARGS% >> %LOG_FILE%
4848
cmd /c cl.exe %CL_ARGS%
4949

0 commit comments

Comments
 (0)