diff options
| author | ruki <[email protected]> | 2022-09-22 00:00:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-09-22 00:00:02 +0800 |
| commit | 473f3ae5d9afde134fef2f1d58dad088d7179461 (patch) | |
| tree | febd37d4f84f21ede0db018173c5e0134afee7fe /xmake/rules/platform/linux/driver/driver_modules.lua | |
| parent | 5d7a01ef08b5d20f43d32a91446933bf641b8cf0 (diff) | |
improve kernel driver
Diffstat (limited to 'xmake/rules/platform/linux/driver/driver_modules.lua')
| -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 |
