diff options
| author | ruki <[email protected]> | 2022-01-05 22:14:18 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-05 22:14:18 +0800 |
| commit | 22573fd1defd7b2b9782f12d39b6a86f90588688 (patch) | |
| tree | 2edcf8830e20f298baf651d51584751d412f1a1c /xmake/rules/platform/linux/driver/driver_modules.lua | |
| parent | b02472adabaeae71c2ee1d07de5b326960e49993 (diff) | |
Update driver_modules.lua
Diffstat (limited to 'xmake/rules/platform/linux/driver/driver_modules.lua')
| -rw-r--r-- | xmake/rules/platform/linux/driver/driver_modules.lua | 2 |
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 a333f5f6e..9a8db4871 100644 --- a/xmake/rules/platform/linux/driver/driver_modules.lua +++ b/xmake/rules/platform/linux/driver/driver_modules.lua @@ -115,7 +115,7 @@ module_exit(hello_exit); local has_cflag = false if cflag:startswith("-f") or cflag:startswith("-m") or (cflag:startswith("-W") and not cflag:startswith("-Wp,-MMD,") and not cflag:startswith("-Wp,-MD,")) - or (cflag:startswith("-D") and not cflag:find("KBUILD_MODNAME=") not cflag:find("KBUILD_BASENAME=")) then + or (cflag:startswith("-D") and not cflag:find("KBUILD_MODNAME=") and not cflag:find("KBUILD_BASENAME=")) then has_cflag = true elseif cflag == "-I" or cflag == "-isystem" or cflag == "-include" then include_cflag = cflag |
