diff options
| author | ruki <[email protected]> | 2023-02-20 22:50:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-20 22:50:41 +0800 |
| commit | f3ee66f6c97ec3c4963aaf12b4b87891b27ad972 (patch) | |
| tree | b3b10a53af17e2b64f50865685165f2330c31105 | |
| parent | 5ffe5163eb24e95943410e193afb4569e4464fb1 (diff) | |
add devlink checker stub
| -rw-r--r-- | xmake/plugins/check/checker.lua | 2 | ||||
| -rw-r--r-- | xmake/plugins/check/checkers/cuda/devlink.lua | 27 |
2 files changed, 29 insertions, 0 deletions
diff --git a/xmake/plugins/check/checker.lua b/xmake/plugins/check/checker.lua index e80050849..f599b69ca 100644 --- a/xmake/plugins/check/checker.lua +++ b/xmake/plugins/check/checker.lua @@ -51,6 +51,8 @@ function checkers() ["api.target.asflags"] = {description = "Check assembler flags configuration in target."}, ["api.target.ldflags"] = {description = "Check binary linker flags configuration in target."}, ["api.target.shflags"] = {description = "Check shared library linker flags configuration in target."}, + -- cuda checkers + ["cuda.devlink"] = {description = "Check devlink for targets.", timely = true}, -- clang tidy checker ["clang.tidy"] = {description = "Check project code using clang-tidy.", showstats = false} } diff --git a/xmake/plugins/check/checkers/cuda/devlink.lua b/xmake/plugins/check/checkers/cuda/devlink.lua new file mode 100644 index 000000000..a2b29cd3b --- /dev/null +++ b/xmake/plugins/check/checkers/cuda/devlink.lua @@ -0,0 +1,27 @@ +--!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 devlink.lua +-- + +-- imports +import("core.base.option") + +function main(opt) + print("devlink") +end + |
