summaryrefslogtreecommitdiff
path: root/xmake/rules/platform/linux/module/driver_modules.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-07-10 23:29:59 +0800
committerruki <[email protected]>2025-07-10 23:29:59 +0800
commit11daac22809387276f81acf64887b8472bfff4ba (patch)
treee77594c881bba0adb2b730e3cb6e44a72fc90aae /xmake/rules/platform/linux/module/driver_modules.lua
parent2acb2a136c1da45501bcfebd6442d12bc94c6b62 (diff)
fix replace gcc/ld
Diffstat (limited to 'xmake/rules/platform/linux/module/driver_modules.lua')
-rw-r--r--xmake/rules/platform/linux/module/driver_modules.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/platform/linux/module/driver_modules.lua b/xmake/rules/platform/linux/module/driver_modules.lua
index 26437144c..689e3d0c7 100644
--- a/xmake/rules/platform/linux/module/driver_modules.lua
+++ b/xmake/rules/platform/linux/module/driver_modules.lua
@@ -266,9 +266,9 @@ function link(target, opt)
local ld = target:tool("ld")
assert(ld, "ld not found!")
ld = ld:gsub("gcc$", "ld")
- ld = ld:gsub("gcc-%d+", "ld")
+ ld = ld:gsub("gcc%-%d+$", "ld")
ld = ld:gsub("g%+%+$", "ld")
- ld = ld:gsub("g%+%+%-%d+", "ld")
+ ld = ld:gsub("g%+%+%-%d+$", "ld")
-- link target.o
local argv = {}