有办法取到package配置的默认值吗? #3650
Answered
by
waruqi
DreamOfIce
asked this question in
Q&A
有办法取到package配置的默认值吗?
#3650
-
如题,目前在修改xrepo中的x264包,要实现仅当和默认值不一致才添加参数 |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Apr 19, 2023
Replies: 2 comments 5 replies
-
if package:config("xxx") ~= "default val" then |
Beta Was this translation helpful? Give feedback.
5 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
遍历时候判断下 跟默认值相同,就不去设置无效参数。。如果不能完全通用,你只能挨个处理。。
另外,它只是警告后 ignore ,只要不影响编译,不影响配置值错误,有警告也无所谓,只是安装包,通常也就安装个一次,又不是经常本地编译调试。。
而且默认不开 -vD 也看不到警告