希望config生效在on_load之前 #2920
Closed
Dozingfiretruck
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
不能,on_load 是最早的,没法改,最早只能在 on_config 里判断 has_config。。不过添加 target deps 只能在 on_load/after_load 做,on_config 里不确定,可能可以 也可能不行 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
你在什么场景下需要该功能?
你好我希望通过输入命令f --tar=abc动态添加静态库依赖,在on_load 里面走 target:add("xxx", ) 动态添加,但是此时config还未生效,has_config("tar")获取的是nil,可否将config生效提前到on_load之前?
描述可能的解决方案
将config生效提前到on_load之前
描述你认为的候选方案
No response
其他信息
No response
Beta Was this translation helpful? Give feedback.
All reactions