mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-01-16 22:08:28 +01:00
Automatically set b_vscrt on Windows
This commit is contained in:
parent
b46f35c1e5
commit
809ae3ae93
12
.github/build.sh
vendored
12
.github/build.sh
vendored
@ -231,14 +231,10 @@ if [[ $PACKAGE_MODE == backendvs ]]; then
|
||||
fi
|
||||
if [[ $BSH_STATIC_DYNAMIC == static ]]; then
|
||||
meson_configure+=$'\t'-Dstatic=prebuilt
|
||||
if [[ $BSH_HOST_PLATFORM == windows ]]; then
|
||||
if [[ $BSH_HOST_LIBC == msvc ]]; then
|
||||
meson_configure+=$'\t'-Db_vscrt=static_from_buildtype
|
||||
else
|
||||
c_link_args+=\'-static\',
|
||||
c_link_args+=\'-static-libgcc\',
|
||||
c_link_args+=\'-static-libstdc++\',
|
||||
fi
|
||||
if [[ $BSH_HOST_PLATFORM-$BSH_HOST_LIBC == windows-mingw ]]; then
|
||||
c_link_args+=\'-static\',
|
||||
c_link_args+=\'-static-libgcc\',
|
||||
c_link_args+=\'-static-libstdc++\',
|
||||
elif [[ $BSH_HOST_PLATFORM == linux ]]; then
|
||||
c_link_args+=\'-static-libgcc\',
|
||||
c_link_args+=\'-static-libstdc++\',
|
||||
|
@ -358,6 +358,11 @@ if host_platform == 'windows'
|
||||
endif
|
||||
endforeach
|
||||
endif
|
||||
if tpt_libs_static == 'static' and host_libc == 'msvc'
|
||||
target_options += [
|
||||
'b_vscrt=static_from_buildtype',
|
||||
]
|
||||
endif
|
||||
foreach def : defs_ccomp_win
|
||||
if cpp_compiler.get_argument_syntax() == 'msvc'
|
||||
args_ccomp_win += [ '/D' + def ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user