diff options
| author | ruki <[email protected]> | 2026-01-31 00:55:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-02-01 16:53:34 +0800 |
| commit | a6ebbeecfd5d6ebe084ac5d3d45e1358e89110d3 (patch) | |
| tree | 7cee8633ccb6cf0b3183b7ac128c225d8e4ce407 /xmake/toolchains/zig/xmake.lua | |
| parent | d7bdbc99bcc5b64a3fa257c5835014f5d8878150 (diff) | |
add target flags for cross-compilation
Diffstat (limited to 'xmake/toolchains/zig/xmake.lua')
| -rw-r--r-- | xmake/toolchains/zig/xmake.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/toolchains/zig/xmake.lua b/xmake/toolchains/zig/xmake.lua index 72e4b943f..d1b2165e4 100644 --- a/xmake/toolchains/zig/xmake.lua +++ b/xmake/toolchains/zig/xmake.lua @@ -78,7 +78,6 @@ toolchain("zig") on_load(function (toolchain) import("core.base.semver") - import("private.core.base.is_cross") -- set toolset -- we patch target to `zig cc` to fix has_flags. see https://github.com/xmake-io/xmake/issues/955#issuecomment-766929692 @@ -110,7 +109,7 @@ toolchain("zig") -- get target from cross only for cross-compilation -- @see https://github.com/xmake-io/xmake/issues/7180 local target - if not target and is_cross(toolchain:plat(), toolchain:arch()) then + if not target and toolchain:is_cross() then target = toolchain:cross() end |
