summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-03 22:54:19 +0800
committerruki <[email protected]>2025-12-03 22:54:19 +0800
commit11e5143150ac817eea0ff563207e9774779897ef (patch)
tree728658ba9eee88b11ec0791843a570e108ebf0c3
parentadacca4a6077f2c5727fe4e56ec728b4a5489923 (diff)
improve flang toolchain
-rw-r--r--xmake/toolchains/flang/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/toolchains/flang/xmake.lua b/xmake/toolchains/flang/xmake.lua
index c74b34bdf..86f08c660 100644
--- a/xmake/toolchains/flang/xmake.lua
+++ b/xmake/toolchains/flang/xmake.lua
@@ -65,7 +65,7 @@ toolchain("flang")
-- only add --target on platforms that need it (Linux, Windows)
-- macOS flang may work without explicit target
- if target and (toolchain:is_plat("linux") or toolchain:is_plat("windows", "mingw")) then
+ if toolchain:is_plat("linux", "windows", "mingw") then
toolchain:add("fcflags", "--target=" .. target)
toolchain:add("fcshflags", "--target=" .. target)
toolchain:add("fcldflags", "--target=" .. target)