summaryrefslogtreecommitdiff
path: root/xmake/scripts/compiler/_clang.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-02 10:50:54 +0800
committerruki <[email protected]>2015-06-02 10:50:54 +0800
commit4b85064e874d050de835f4a4a0b2158f1405a6aa (patch)
treec3f0ccec578302d4ad215198014d7f6331975546 /xmake/scripts/compiler/_clang.lua
parentbf6315e4e63270175eb27d9ab73dc98f3408cea8 (diff)
reimpl unique for flags
Diffstat (limited to 'xmake/scripts/compiler/_clang.lua')
-rw-r--r--xmake/scripts/compiler/_clang.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/xmake/scripts/compiler/_clang.lua b/xmake/scripts/compiler/_clang.lua
index b275f23b8..00b49c47f 100644
--- a/xmake/scripts/compiler/_clang.lua
+++ b/xmake/scripts/compiler/_clang.lua
@@ -66,6 +66,20 @@ function _clang._make(configs, srcfile, objfile, flags)
return string.format("%s -c %s -o%s %s", configs.name, flags, objfile, srcfile)
end
+-- make the define flag
+function _clang._make_define(configs, define)
+
+ -- make it
+ return "-D" .. define
+end
+
+-- make the includedir flag
+function _clang._make_includedir(configs, includedir)
+
+ -- make it
+ return "-I" .. includedir
+end
+
-- map gcc flag to the current compiler flag
function _clang._mapflag(configs, flag)