diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4cfa0cb..09979ad2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,7 @@ jobs: os: ubuntu-20.04 - target: darwin-x86_64 os: macos-latest + vflags: -d cross_compile_macos_x86_64 - target: darwin-arm64 os: macos-latest vflags: -d cross_compile_macos_arm64 diff --git a/build.vsh b/build.vsh index e552669f..186062d0 100644 --- a/build.vsh +++ b/build.vsh @@ -39,6 +39,8 @@ fn (m ReleaseMode) compile_cmd() string { } cflags := $if cross_compile_macos_arm64 ? { '-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 {