diff --git a/build.vsh b/build.vsh index a41f8b1..186062d 100644 --- a/build.vsh +++ b/build.vsh @@ -41,6 +41,8 @@ fn (m ReleaseMode) compile_cmd() string { '-cflags "-target arm64-apple-darwin"' } $else $if cross_compile_macos_x86_64 ? { '-cflags "-target x86_64-apple-darwin"' + } $else $if linux { + if m == .release { '-cflags -static' } else { '' } } $else { '' }