summaryrefslogtreecommitdiff
path: root/xmake/scripts/tools/gcc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/tools/gcc.lua')
-rw-r--r--xmake/scripts/tools/gcc.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/scripts/tools/gcc.lua b/xmake/scripts/tools/gcc.lua
index a4b1ce21b..4dfd85c5b 100644
--- a/xmake/scripts/tools/gcc.lua
+++ b/xmake/scripts/tools/gcc.lua
@@ -119,6 +119,13 @@ function gcc.flag_define(define)
return "-D" .. define
end
+-- make the undefine flag
+function gcc.flag_undefine(undefine)
+
+ -- make it
+ return "-U" .. undefine
+end
+
-- make the includedir flag
function gcc.flag_includedir(includedir)