diff options
| author | ruki <[email protected]> | 2020-11-25 23:21:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-25 23:21:13 +0800 |
| commit | c9c4a0046f6ec2f0f2f4699e49d8809629a055f2 (patch) | |
| tree | 42adaf4a0e0a02d676350e2cc19aa610d09e6f2a /xmake/actions/require/impl/package.lua | |
| parent | 92a8c9c2ed2713173b5ef0c6a7806df36556823d (diff) | |
improve package/configs
Diffstat (limited to 'xmake/actions/require/impl/package.lua')
| -rw-r--r-- | xmake/actions/require/impl/package.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/require/impl/package.lua b/xmake/actions/require/impl/package.lua index 599d076c1..2a0137967 100644 --- a/xmake/actions/require/impl/package.lua +++ b/xmake/actions/require/impl/package.lua @@ -292,8 +292,8 @@ function _check_package_configurations(package) for name, value in pairs(package:configs()) do local conf = configs_defined[name] if conf then - local config_type = conf.type or "string" - if type(value) ~= config_type then + local config_type = conf.type + if config_type ~= nil and type(value) ~= config_type then raise("package(%s %s): invalid type(%s) for config(%s), need type(%s)!", package:name(), package:version_str(), type(value), name, config_type) end if conf.values then |
