diff options
| author | ruki <[email protected]> | 2023-02-20 22:47:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-20 22:47:16 +0800 |
| commit | 2e04812cae7e38d9b097b40cce90b34ec6fb8fca (patch) | |
| tree | fc25c1fb5259908a3a6d4c6e97ca22a2361cb19a /xmake/plugins/check/checkers/api/target/frameworkdirs.lua | |
| parent | 1ceae4d5e4b2786c395a705f7c89601e6ef8aedc (diff) | |
improve target checkers
Diffstat (limited to 'xmake/plugins/check/checkers/api/target/frameworkdirs.lua')
| -rw-r--r-- | xmake/plugins/check/checkers/api/target/frameworkdirs.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/plugins/check/checkers/api/target/frameworkdirs.lua b/xmake/plugins/check/checkers/api/target/frameworkdirs.lua index f21629fe5..088aa7114 100644 --- a/xmake/plugins/check/checkers/api/target/frameworkdirs.lua +++ b/xmake/plugins/check/checkers/api/target/frameworkdirs.lua @@ -21,11 +21,12 @@ -- imports import(".api_checker") -function main() - api_checker.check_targets("frameworkdirs", {check = function(target, value) +function main(opt) + opt = opt or {} + api_checker.check_targets("frameworkdirs", table.join(opt, {check = function(target, value) if not os.isdir(value) then return false, string.format("frameworkdir '%s' not found", value) end return true - end}) + end})) end |
