File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
libxtracfg/c/native-image Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,10 @@ echo SHARED LIBRARY >> %LOG_FILE%
4242echo ===================================================== >> %LOG_FILE%
4343REM Modify the arguments if needed
4444set CL_ARGS = %*
45+ set " CL_ARGS = %CL_ARGS:/MD /LD =/MT % "
46+ set " CL_ARGS = %CL_ARGS:/NODEFAULTLIB:LIBCMT =% "
4547echo cl.exe %CL_ARGS% >> %LOG_FILE%
46- cmd /c cl.exe /MT %CL_ARGS%
48+ cmd /c cl.exe %CL_ARGS%
4749
4850echo ===================================================== >> %LOG_FILE%
4951echo STATIC EXTERNAL >> %LOG_FILE%
@@ -69,6 +71,6 @@ REM To create a static library on Windows we need to call lib.exe input.obj /OUT
6971REM We don't want to overwrite the .lib needed to compile against the .dll, so
7072REM we append "_s" to indicate that it is a static library.
7173if not exist %OUTPUT_PATH% mkdir %OUTPUT_PATH%
72- set LIB_ARGS = %LIB_NAME% .obj !LIBS_EXT! /OUT:%OUTPUT_PATH% \%LIB_NAME% _static.lib
74+ set LIB_ARGS = %LIB_NAME% .obj /OUT:%OUTPUT_PATH% \%LIB_NAME% _static.lib
7375echo lib.exe %LIB_ARGS% >> %LOG_FILE%
7476cmd /c lib.exe %LIB_ARGS%
You can’t perform that action at this time.
0 commit comments