-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
add PGO and LTO build options to makefile #4651
Conversation
|
If we had a small profile suite in the dmd repo itself, we could have a single make target that builds+profiles+builds dmd. |
|
We'd need to decide on a representative profile suite, then could use this for extra optimized release builds. |
|
fix it and I'll pull it |
- workflow PGO rm -rf src/pgo make -C src -f posix.mak ENABLE_PGO_GENERATE=1 .. use the generated dmd binary (e.g. build phobos) make -C src -f posix.mak clean make -C src -f posix.mak ENABLE_PGO_USE=1 - workflow LTO make -C src -f posix.mak ENABLE_LTO=1 - combining both is possible and beneficial
|
Updated |
|
Auto-merge toggled on |
add PGO and LTO build options to makefile
|
Shouldn't we use |
|
And, probably, also |
|
According to the documentation we should not set any of them. |

workflow PGO
rm -rf src/pgo
make -C src -f posix.mak ENABLE_PGO_GENERATE=1
.. use the generated dmd binary (e.g. build phobos)
make -C src -f posix.mak clean
make -C src -f posix.mak ENABLE_PGO_USE=1
workflow LTO
make -C src -f posix.mak ENABLE_LTO=1
combining both is possible and beneficial