summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-06-20 13:15:10 +0800
committerruki <[email protected]>2017-06-20 13:15:10 +0800
commita4a011d5147d15c424b6a01633b33b9d8d11a4ff (patch)
tree4d8989cfb247d7e71d3869ea7ebb404aec6b7c35
parent1c93eb7d04b132f4c5121567da124e8c7e56249e (diff)
add has_flag for g++, clang, clang++
-rw-r--r--xmake/modules/detect/tools/clang/has_flag.lua27
-rw-r--r--xmake/modules/detect/tools/clangxx/has_flag.lua27
-rw-r--r--xmake/modules/detect/tools/gcc/has_flag.lua2
-rw-r--r--xmake/modules/detect/tools/gxx/has_flag.lua27
4 files changed, 82 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/clang/has_flag.lua b/xmake/modules/detect/tools/clang/has_flag.lua
new file mode 100644
index 000000000..0cb83600e
--- /dev/null
+++ b/xmake/modules/detect/tools/clang/has_flag.lua
@@ -0,0 +1,27 @@
+--!The Make-like Build Utility based on Lua
+--
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-- Copyright (C) 2015 - 2017, TBOOX Open Source Group.
+--
+-- @author ruki
+-- @file has_flag.lua
+--
+
+-- imports
+inherit("detect.tools.gcc.has_flag")
+
diff --git a/xmake/modules/detect/tools/clangxx/has_flag.lua b/xmake/modules/detect/tools/clangxx/has_flag.lua
new file mode 100644
index 000000000..0cb83600e
--- /dev/null
+++ b/xmake/modules/detect/tools/clangxx/has_flag.lua
@@ -0,0 +1,27 @@
+--!The Make-like Build Utility based on Lua
+--
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-- Copyright (C) 2015 - 2017, TBOOX Open Source Group.
+--
+-- @author ruki
+-- @file has_flag.lua
+--
+
+-- imports
+inherit("detect.tools.gcc.has_flag")
+
diff --git a/xmake/modules/detect/tools/gcc/has_flag.lua b/xmake/modules/detect/tools/gcc/has_flag.lua
index a0624dc4a..af00b84d8 100644
--- a/xmake/modules/detect/tools/gcc/has_flag.lua
+++ b/xmake/modules/detect/tools/gcc/has_flag.lua
@@ -19,7 +19,7 @@
-- Copyright (C) 2015 - 2017, TBOOX Open Source Group.
--
-- @author ruki
--- @file check_flag.lua
+-- @file has_flag.lua
--
-- imports
diff --git a/xmake/modules/detect/tools/gxx/has_flag.lua b/xmake/modules/detect/tools/gxx/has_flag.lua
new file mode 100644
index 000000000..0cb83600e
--- /dev/null
+++ b/xmake/modules/detect/tools/gxx/has_flag.lua
@@ -0,0 +1,27 @@
+--!The Make-like Build Utility based on Lua
+--
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License. You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-- Copyright (C) 2015 - 2017, TBOOX Open Source Group.
+--
+-- @author ruki
+-- @file has_flag.lua
+--
+
+-- imports
+inherit("detect.tools.gcc.has_flag")
+