summaryrefslogtreecommitdiff
path: root/xmake/rules/platform/linux
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-29 22:31:15 +0800
committerruki <[email protected]>2021-12-29 22:31:15 +0800
commit8f8ab64567127d96af6bc7321633d157916e1c97 (patch)
tree9caaad496aa751f6ce8f555edf6bf8c86d3908d1 /xmake/rules/platform/linux
parent70e03f735c6f27e5e0d97c2c0bbeb03d239a6574 (diff)
fix linux driver
Diffstat (limited to 'xmake/rules/platform/linux')
-rw-r--r--xmake/rules/platform/linux/driver/driver_modules.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/platform/linux/driver/driver_modules.lua b/xmake/rules/platform/linux/driver/driver_modules.lua
index b9c48e163..f5e5ecc69 100644
--- a/xmake/rules/platform/linux/driver/driver_modules.lua
+++ b/xmake/rules/platform/linux/driver/driver_modules.lua
@@ -147,7 +147,7 @@ module_exit(hello_exit);
if line:endswith("stub.c") then
for _, cflag in ipairs(line:split("%s+")) do
if cflag:startswith("-f") or cflag:startswith("-m")
- or (cflag:startswith("-W") and not cflag:startswith("-Wp,-MMD,"))
+ or (cflag:startswith("-W") and not cflag:startswith("-Wp,-MMD,") and not cflag:startswith("-Wp,-MD,"))
or (cflag:startswith("-D") and not cflag:startswith("-DKBUILD_")) then
cflags = cflags or {}
table.insert(cflags, cflag)