diff options
| author | ruki <[email protected]> | 2024-01-23 23:16:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-25 12:09:59 +0800 |
| commit | cfd58ddb7af2e99cca95087ba001103d327a8abf (patch) | |
| tree | d039cb818e80adaa88fb8a46d060628a60473269 /xmake/modules/private/action/require/impl/package.lua | |
| parent | 6f05013ae1fcf9f050d949796c2d74b7aa27c1d9 (diff) | |
add warning
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
| -rw-r--r-- | xmake/modules/private/action/require/impl/package.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua index 47ec0f8b5..eff4316cc 100644 --- a/xmake/modules/private/action/require/impl/package.lua +++ b/xmake/modules/private/action/require/impl/package.lua @@ -587,6 +587,9 @@ function _finish_requireinfo(requireinfo, package) if readonly == nil then readonly = package:extraconf("configs", "vs_runtime", "readonly") end + if default ~= nil or readonly ~= nil then + wprint("please use add_configs(\"runtimes\") instead of add_configs(\"vs_runtime\").") + end end if readonly and current ~= default then wprint("configs.%s is readonly in package(%s), it's always %s", name, package:name(), default) |
