diff options
| author | ruki <[email protected]> | 2019-05-23 22:22:56 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-05-23 08:17:36 +0800 |
| commit | 8fb219dfe62b6f52b77ec900ef720ded2720aeaa (patch) | |
| tree | 0be4712d720f6caf4ef10c069bd7c98f0fa28a9a | |
| parent | 7434ac208724ea5840e32040fda9601feb4dd722 (diff) | |
fix set_config
| -rw-r--r-- | xmake/actions/config/main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua index 049f0f0a6..4cafb68ba 100644 --- a/xmake/actions/config/main.lua +++ b/xmake/actions/config/main.lua @@ -240,7 +240,7 @@ function main() -- merge the project options after default options for name, value in pairs(project.get("config")) do value = table.unwrap(value) - assert(type(value) == "string", "set_config(%s): too much values", name) + assert(type(value) == "string" or type(value) == "boolean" or type(value) == "number", "set_config(%s): unsupported value type(%s)", name, type(value)) if not config.readonly(name) then config.set(name, value) end |
