summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-09-06 22:12:27 +0800
committerruki <[email protected]>2025-09-06 22:12:27 +0800
commitaa523879502d51a0f6d131c34825ed478cc59442 (patch)
tree14d0989b3351685ec6dbc1930d2b937a67074747 /xmake/modules/core/tools/gcc.lua
parent8d003d54d21714a893990e640ab6d9e711a092a5 (diff)
add #embed and embedirs support #6762
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 7062e335f..0589ea4d5 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -661,6 +661,11 @@ function nf_includedir(self, dir)
return {"-I" .. path.translate(dir)}
end
+-- make the embeddir flag
+function nf_embeddir(self, dir)
+ return {"--embed-dir=" .. path.translate(dir)}
+end
+
-- make the sysincludedir flag
function nf_sysincludedir(self, dir)
return {"-isystem", path.translate(dir)}