summaryrefslogtreecommitdiff
path: root/xmake/scripts/compiler/_clang.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-05-29 11:06:34 +0800
committerruki <[email protected]>2015-05-29 11:06:34 +0800
commit9aa34cbeaac0f6117fc0879a4f5f7059438da3c1 (patch)
tree541e4cb20a225867bd00f67f7fcb6aec9f4fa4ad /xmake/scripts/compiler/_clang.lua
parent6292b0f0938625902da6e3deec4877e409007708 (diff)
add compiler
Diffstat (limited to 'xmake/scripts/compiler/_clang.lua')
-rw-r--r--xmake/scripts/compiler/_clang.lua44
1 files changed, 44 insertions, 0 deletions
diff --git a/xmake/scripts/compiler/_clang.lua b/xmake/scripts/compiler/_clang.lua
new file mode 100644
index 000000000..27f9b868f
--- /dev/null
+++ b/xmake/scripts/compiler/_clang.lua
@@ -0,0 +1,44 @@
+--!The Automatic Cross-_clang Build Tool
+--
+-- XMake is free software; you can redistribute it and/or modify
+-- it under the terms of the GNU Lesser General Public License as published by
+-- the Free Software Foundation; either version 2.1 of the License, or
+-- (at your option) any later version.
+--
+-- XMake is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU Lesser General Public License for more details.
+--
+-- You should have received a copy of the GNU Lesser General Public License
+-- along with XMake;
+-- If not, see <a href="http://www.gnu.org/licenses/"> http://www.gnu.org/licenses/</a>
+--
+-- Copyright (C) 2009 - 2015, ruki All rights reserved.
+--
+-- @author ruki
+-- @file _clang.lua
+--
+
+-- define module: _clang
+local _clang = _clang or {}
+
+-- load modules
+local utils = require("base/utils")
+local string = require("base/string")
+local config = require("base/config")
+
+-- init the compiler
+function _clang._init(configs)
+
+end
+
+-- map gcc flag to the current compiler flag
+function _clang._mapflag(configs, flag)
+
+ -- ok
+ return flag
+end
+
+-- return module: _clang
+return _clang