summaryrefslogtreecommitdiff
path: root/xmake/modules/detect
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-03 22:39:36 +0800
committerruki <[email protected]>2025-12-03 22:39:36 +0800
commit4b24a3cb479df5ce3dd19eefa0c8ad0b794e5a4c (patch)
tree33dcfaf1a96a914da5c2da9ef8363a915ea4eebc /xmake/modules/detect
parent9a131d04c140ed7fdb2e7839ea14ac77b937dcb5 (diff)
improve flang
Diffstat (limited to 'xmake/modules/detect')
-rw-r--r--xmake/modules/detect/tools/find_flang.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_flang.lua b/xmake/modules/detect/tools/find_flang.lua
index 2f29b2952..da21f1490 100644
--- a/xmake/modules/detect/tools/find_flang.lua
+++ b/xmake/modules/detect/tools/find_flang.lua
@@ -42,6 +42,10 @@ function main(opt)
-- find program
local program = find_program(opt.program or "flang", opt)
+ if not program and is_host("linux") then
+ -- on Linux, flang might be named as flang-new
+ program = find_program("flang-new", opt)
+ end
-- find program version
local version = nil