mirror of
https://github.com/ziglang/zig.git
synced 2025-01-19 08:22:43 +00:00
avoid passing -static to msvc when static linking
This commit is contained in:
parent
10b1017702
commit
357fb4f143
@ -521,7 +521,7 @@ if(ZIG_STATIC)
|
||||
set(EXE_LDFLAGS "${EXE_LDFLAGS} -static-libgcc -static-libstdc++")
|
||||
elseif(MINGW)
|
||||
set(EXE_LDFLAGS "${EXE_LDFLAGS} -static-libgcc -static-libstdc++ -Wl,-Bstatic, -lwinpthread -lz3 -lz -lgomp")
|
||||
else()
|
||||
elseif(NOT MSVC)
|
||||
set(EXE_LDFLAGS "${EXE_LDFLAGS} -static")
|
||||
endif()
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user