Closed Rinkaa closed 2 years ago
> xrepo install -f "glfw_include='es3'" glfw
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo-dev:
-> glfw 3.3.4 [glfw_include:es3]
please input: y (y/n/m)
哦……原来需要个引号括起来 OTZ|||
但是xrepo --help和文档里面都有xrepo install -f "vs_runtime=MD" zlib
这个例子,这里MD
没用引号是因为MD是个变量么
> xrepo install -f "glfw_include='es3'" glfw note: install or modify (m) these packages (pass -y to skip confirm)? in xmake-repo-dev: -> glfw 3.3.4 [glfw_include:es3] please input: y (y/n/m)
哦……原来需要个引号括起来 OTZ||| 但是xrepo --help和文档里面都有
xrepo install -f "vs_runtime=MD" zlib
这个例子,这里MD
没用引号是因为MD是个变量么
文档里面也是不对的,可以帮忙修复下
目前解析直接依赖 lua ,所以就是 {xxx="foo"}
的table解析,string value 要有 ""
备忘: 另一个相似的命令是
xmake f --vs_runtime=MD
, 不过这里的参数不带引号也会被识别成字符串
Describe the bug
-f "someconfig"
makes no effect forxrepo install
; In the following commands, the config-f "glfw_include=es3"
is ignored and makes no effect.Expected behavior
Package with the given configs should be installed, eg. providing
{glfw_include="es3"}
Related Environment