diff options
| author | ruki <[email protected]> | 2026-02-01 19:44:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-02-01 19:44:13 +0800 |
| commit | 29fe0f24104d98653d2867926bd1263a304cd87c (patch) | |
| tree | c47bba70fc9fc050cce94940d6d34817d3689a0d | |
| parent | d46ab112cb14974b81c66632a1f987e28490d67a (diff) | |
add target to clang/windows
| -rw-r--r-- | xmake/modules/private/utils/toolchain.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/utils/toolchain.lua b/xmake/modules/private/utils/toolchain.lua index 9b5dedb88..bf24d3c73 100644 --- a/xmake/modules/private/utils/toolchain.lua +++ b/xmake/modules/private/utils/toolchain.lua @@ -168,9 +168,10 @@ function get_clang_target(toolchain) end -- get clang target flags +-- @see https://github.com/xmake-io/xmake/issues/7271 function get_clang_target_flags(toolchain) local target - if toolchain:is_cross() then + if toolchain:is_cross() or toolchain:is_plat("windows") then target = get_clang_target(toolchain) if target then return "--target=" .. target |
