Skip to content

Commit 8b4f325

Browse files
committed
windows build
1 parent dbd2cf0 commit 8b4f325

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ echo STATIC EXTERNAL >> %LOG_FILE%
4848
echo ===================================================== >> %LOG_FILE%
4949
set LIBS_EXT=
5050
for %%P in (%*) do (
51-
echo %%P | findstr /R /C:" C:\\.*\.lib " 1>nul
51+
echo %%P >> %LOG_FILE%
52+
echo %%P | findstr /R /C:" C:\\.*?\.lib " 1>nul
5253
if !errorlevel!==0 (
53-
echo %%P >> %LOG_FILE%
54+
echo *** >> %LOG_FILE%
5455
set LIBS_EXT=!LIBS_EXT! %%P
5556
)
5657
)
@@ -63,6 +64,6 @@ REM To create a static library on Windows we need to call lib.exe input.obj /OUT
6364
REM We don't want to overwrite the .lib needed to compile against the .dll, so
6465
REM we append "_s" to indicate that it is a static library.
6566
if not exist %OUTPUT_PATH% mkdir %OUTPUT_PATH%
66-
set LIB_ARGS=%LIB_NAME%.obj %LIBS_EXT% /OUT:%OUTPUT_PATH%\%LIB_NAME%_static.lib
67+
set LIB_ARGS=%LIB_NAME%.obj !LIBS_EXT! /OUT:%OUTPUT_PATH%\%LIB_NAME%_static.lib
6768
echo lib.exe %LIB_ARGS% >> %LOG_FILE%
6869
cmd /c lib.exe %LIB_ARGS%

0 commit comments

Comments
 (0)