From 8841ed9f7b427896f042abcfb3537dd731f6a923 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 29 Mar 2026 22:55:28 +0800 Subject: improve const limit codes --- xmake/rules/platform/linux/module/driver_modules.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmake/rules/platform/linux/module/driver_modules.lua') diff --git a/xmake/rules/platform/linux/module/driver_modules.lua b/xmake/rules/platform/linux/module/driver_modules.lua index f7d90a781..e7a0dda49 100644 --- a/xmake/rules/platform/linux/module/driver_modules.lua +++ b/xmake/rules/platform/linux/module/driver_modules.lua @@ -117,8 +117,7 @@ module_exit(hello_exit); if result then -- we can also split ';' for the muliple commands for _, line in ipairs(result:split("[\n;]")) do - local line = line - line = line:trim() + local line = line:trim() if line:endswith("stub.c") then local include_cflag = false for _, cflag in ipairs(line:split("%s+")) do -- cgit v1.3.1