diff options
| -rw-r--r-- | xmake/rules/platform/linux/driver/driver_modules.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/platform/linux/driver/driver_modules.lua b/xmake/rules/platform/linux/driver/driver_modules.lua index 4f2640c83..fcf6a088d 100644 --- a/xmake/rules/platform/linux/driver/driver_modules.lua +++ b/xmake/rules/platform/linux/driver/driver_modules.lua @@ -108,7 +108,9 @@ module_exit(hello_exit); end local result, errors = try {function () return os.iorunv(make.program, argv, {curdir = tmpdir}) end} if result then - for _, line in ipairs(result:split("\n", {plain = true})) do + -- we can also split ';' for the muliple commands + for _, line in ipairs(result:split("[\n;]")) do + line = line:trim() if line:endswith("stub.c") then local include_cflag = false for _, cflag in ipairs(line:split("%s+")) do |
