-
Notifications
You must be signed in to change notification settings - Fork 159
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
Build troubleshooting for long builds #2447
Build troubleshooting for long builds #2447
Conversation
Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
May or may not be relevant here since they are enabled by default and already mentioned throughout the rest of the documentation, but unity builds are significantly faster (by 2x or more) for me in comparison to non-unity builds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also mention on Linux that the build could run out of memory and cause OOM killer to run or for certain install cause the machine to reboot.
The cmake --build --j/--parallel
option can be used to reduce the number of parallel.
For example on a 12-core 32-GiB machine, the user might want to reduce the number of parallel build jobs to 6 if they are noticing their compile processes are being killed.
cmake --build <build-dir> --j 6 --config profile --target MyProject.GameLauncher -- <generator specific options>
Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
Went ahead and added those VS 2022 menu images, suggestion to use unity builds, and cmake parallel build option. |
Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Added @willihay to the review |
Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
Change summary
Troubleshooting steps for long builds or builds that freeze or lock up a computer with high CPU core counts
Submission Checklist: