summaryrefslogtreecommitdiff
path: root/xmake/rules/platform/linux/driver/driver_modules.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-13 00:49:26 +0800
committerruki <[email protected]>2023-01-13 00:49:26 +0800
commit4d68e78c0a6a320819307469ed530a11693b58c7 (patch)
tree33f127ff88b5fbab2b1a47d1845a9b6007ed427c /xmake/rules/platform/linux/driver/driver_modules.lua
parent9b1bbefd2ea8132c702bccfa35f9bab5787b66b1 (diff)
translate fplugin dir #3279
Diffstat (limited to 'xmake/rules/platform/linux/driver/driver_modules.lua')
-rw-r--r--xmake/rules/platform/linux/driver/driver_modules.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/rules/platform/linux/driver/driver_modules.lua b/xmake/rules/platform/linux/driver/driver_modules.lua
index 1771341d2..9e5b7f1a5 100644
--- a/xmake/rules/platform/linux/driver/driver_modules.lua
+++ b/xmake/rules/platform/linux/driver/driver_modules.lua
@@ -140,6 +140,14 @@ module_exit(hello_exit);
end
has_cflag = true
include_cflag = nil
+ elseif cflag:startswith("-fplugin=") then
+ -- @see https://github.com/xmake-io/xmake/issues/3279
+ local plugindir = cflag:sub(10)
+ if not path.is_absolute(plugindir) then
+ plugindir = path.absolute(plugindir, sdkdir)
+ end
+ cflag = "-fplugin=" .. plugindir
+ has_cflag = true
end
if has_cflag then
cflags = cflags or {}