-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when COMPILE_OPTIONS is not set, skip the REMOVE_ITEM in ${HOSTSRCS}, fix msvc reported case. #14499
Conversation
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
@lupyuen could we turn on windows ci to see how much budget will be used? |
@xiaoxiang781216 I'm very sorry, can we do this after 30 Oct? Remember that ASF Infra Team is watching our GitHub Spending very closely. If we exceed their budget on 30 Oct, they will shut down GitHub Actions. Thank you so much for your understanding, I'm very sorry we have to bear with this 🙏 |
@jasonbu build nuttx with this PR is now OK ! https://github.com/simbit18/nuttx-testing-ci/actions/runs/11499906609/job/32009014581 |
BTW we could fork the NuttX Repo to a new GitHub Org and test there: #14407 |
share, let's wait a moment. Thanks for your hard work to avoiding foundation turn off our ci. |
@xiaoxiang781216 @lupyuen I created this simple workflow to build nuttx on Windows, which starts automatically every hour, or the workflow can be activated manually. If you want, you can use it for testing in any repository. https://github.com/simbit18/nuttx_test_pr/blob/main/.github/workflows/ci_windows.yml this is for repository: apache/nuttx
For testing, just change this
|
That's very cool thanks! :-) |
@xiaoxiang781216 @xuxin930 |
msvc build is successful in our NuttX Mirror Repo yay! 🎉 https://github.com/NuttX/nuttx/actions/runs/11501541770 |
@anchao |
Because setting up the MSVC environment is not a huge work, you only need to install the MSVC environment in wine or support MSVC in docker, and the compilation process does not require the support of GUI interface, CMD is enough |
sure @anchao, we have a CI task for msvc, but it is daily, but there are no achieve per patch yet :-( |
|
Summary
sim/cmake: compatible when nuttx COMPILE_OPTIONS is not set yet
#14440
when COMPILE_OPTIONS is not set, cmake will report an error:
HOST_COMPILE_OPTIONS-NOTFOUND
as we only want to do item remove. so let's skip the remove procedure at this case.
@simbit18 I did not try the win host and re-produce the problem, please help me verify if it will work, I will do verify later.
Impact
fix bug when msvc build.
Testing
CI-test & ubuntu sim:nsh.