summaryrefslogtreecommitdiff
path: root/xmake/scripts/compiler/_clang.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-05-30 15:18:19 +0800
committerruki <[email protected]>2015-05-30 15:18:19 +0800
commit87683f4d3ba6d41c0b8900244e05dee4f84e2e62 (patch)
tree43829a15b7bf2e7311302af6d826408bcdbad38d /xmake/scripts/compiler/_clang.lua
parent9aa34cbeaac0f6117fc0879a4f5f7059438da3c1 (diff)
load compiler and make command
Diffstat (limited to 'xmake/scripts/compiler/_clang.lua')
-rw-r--r--xmake/scripts/compiler/_clang.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/scripts/compiler/_clang.lua b/xmake/scripts/compiler/_clang.lua
index 27f9b868f..6bfa83d69 100644
--- a/xmake/scripts/compiler/_clang.lua
+++ b/xmake/scripts/compiler/_clang.lua
@@ -33,6 +33,13 @@ function _clang._init(configs)
end
+-- make the compiler command
+function _clang._make(configs, srcfile, objfile, flags)
+
+ -- make it
+ return string.format("%s -c %s -o%s %s", configs.name, flags, objfile, srcfile)
+end
+
-- map gcc flag to the current compiler flag
function _clang._mapflag(configs, flag)