summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/utils/toolchain.lua3
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