diff options
| author | ruki <[email protected]> | 2023-02-02 22:36:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-02 22:36:33 +0800 |
| commit | 058c743ec6da396c2d28d99cd2838b0528ead682 (patch) | |
| tree | 7700d6d1e4e504ce14bcb8f1538e153af4670056 | |
| parent | 3ccae48c676e8a08e811b421676ba682e32ec8a7 (diff) | |
add vectorext checker
| -rw-r--r-- | xmake/plugins/check/checker.lua | 20 | ||||
| -rw-r--r-- | xmake/plugins/check/checkers/api/target/exceptions.lua | 26 | ||||
| -rw-r--r-- | xmake/plugins/check/checkers/api/target/vectorexts.lua | 26 |
3 files changed, 63 insertions, 9 deletions
diff --git a/xmake/plugins/check/checker.lua b/xmake/plugins/check/checker.lua index d15655629..bd938d1ac 100644 --- a/xmake/plugins/check/checker.lua +++ b/xmake/plugins/check/checker.lua @@ -27,16 +27,18 @@ function checkers() if not checkers then checkers = { -- target api checkers - ["api.target.version"] = {description = "Check version configuration in target."}, - ["api.target.strip"] = {description = "Check strip configuration in target."}, - ["api.target.optimize"] = {description = "Check optimize configuration in target."}, - ["api.target.symbols"] = {description = "Check symbols configuration in target."}, - ["api.target.fpmodels"] = {description = "Check fpmodels configuration in target."}, - ["api.target.warnings"] = {description = "Check warnings configuration in target."}, - ["api.target.languages"] = {description = "Check languages configuration in target."}, - ["api.target.packages"] = {description = "Check packages configuration in target."}, + ["api.target.version"] = {description = "Check version configuration in target."}, + ["api.target.strip"] = {description = "Check strip configuration in target."}, + ["api.target.optimize"] = {description = "Check optimize configuration in target."}, + ["api.target.symbols"] = {description = "Check symbols configuration in target."}, + ["api.target.fpmodels"] = {description = "Check fpmodels configuration in target."}, + ["api.target.warnings"] = {description = "Check warnings configuration in target."}, + ["api.target.languages"] = {description = "Check languages configuration in target."}, + ["api.target.vectorexts"] = {description = "Check vectorexts configuration in target."}, + ["api.target.exceptions"] = {description = "Check exceptions configuration in target."}, + ["api.target.packages"] = {description = "Check packages configuration in target."}, -- clang tidy checker - ["clang.tidy"] = {description = "Check project code using clang-tidy.", showstats = false} + ["clang.tidy"] = {description = "Check project code using clang-tidy.", showstats = false} } _g._CHECKERS = checkers end diff --git a/xmake/plugins/check/checkers/api/target/exceptions.lua b/xmake/plugins/check/checkers/api/target/exceptions.lua new file mode 100644 index 000000000..551595e7b --- /dev/null +++ b/xmake/plugins/check/checkers/api/target/exceptions.lua @@ -0,0 +1,26 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed 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-present, TBOOX Open Source Group. +-- +-- @author ruki +-- @file exceptions.lua +-- + +-- imports +import(".api_checker") + +function main() + api_checker.check_targets("exceptions", {values = {"none", "cxx", "objc", "no-cxx", "no-objc"}}) +end diff --git a/xmake/plugins/check/checkers/api/target/vectorexts.lua b/xmake/plugins/check/checkers/api/target/vectorexts.lua new file mode 100644 index 000000000..dc6a1a755 --- /dev/null +++ b/xmake/plugins/check/checkers/api/target/vectorexts.lua @@ -0,0 +1,26 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed 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-present, TBOOX Open Source Group. +-- +-- @author ruki +-- @file vectorexts.lua +-- + +-- imports +import(".api_checker") + +function main() + api_checker.check_targets("vectorexts", {values = {"none", "sse", "sse2", "sse3", "ssse3", "avx", "avx2", "neon"}}) +end |
