Replies: 2 comments 7 replies
-
这不是 bug,你得使用 option_end ,否则下面的所有 add_includedirs 都是对之前的 option 的设置,而不是 target 或者可以用 多次执行问题,建议先看下 https://xmake.io/#/zh-cn/guide/syntax_description 文档里面有特别描述,不要在描述域去 print 调试。 |
Beta Was this translation helpful? Give feedback.
7 replies
-
多次执行,并且结果不同,这不是bug,文档有详细说明。。目前就是这么设计的,描述域不同阶段 解析的内容不同,所以不要去描述域 print 任何东西,也不要去看任何打印的值,没有任何意义的。。 要 print 各种状态,请到 on_load 脚本域调 |
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
-
Xmake Version
xmake v2.6.3+master.967769fd1
Operating System Version and Architecture
Windows 10
Describe Bug
When I add a custom option in the xmake.lua, it sometimes failed to show the option in menu (xmake f -h) and I can not pass it via command line.
I try to set it via the command line. Most of the time, this command may be failed. But sometimes it can successfully get the config.
I seem to have found out the differences. When I write in this way, it can succeed.
Otherwise, it may fail when I make the following changes.
Expected Behavior
The NRF_SDK option should be successfully set by the command line. But I can only succeed in one of 10 tries without any modifications.
Project Configuration
Additional Information and Error Logs
The problem seems to be the xmake.lua is run many times in each command.
The option is not always loaded and the string contact may be nil. Then the
xmake -f --NRF_SDK=xxx
failed with an error message of "error: Invalid option: --NRF_SDK"Beta Was this translation helpful? Give feedback.
All reactions