diff options
| -rw-r--r-- | xmake/toolchains/flang/xmake.lua | 2 |
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) |
