-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Make ASAN build not be debug, following clangs recommendation #54094
Conversation
This needs JuliaCI/julia-buildkite#349 to actually have effect |
So bootstrapping with O1 is quite a bit faster 🤔 |
But building the pkgimages of the stdlibs is still quite slow, no? |
Yes, it might be worth it to understand why ASAN is so expensive for us, I believe the expected overhead is 2x and we are seeing almost 4 and for pkgimages it's almost 20x but this still halves the time by half |
Can this this merged since it does sensibly improve ASAN build time, and further improvement can be done in follow up PR? |
@gbaraldi any objection to backporting this PR to v1.11? |
(cherry picked from commit 6c17db1)
I backported it because asan fails all the time on 1.11. Maybe this will help. |
(cherry picked from commit 6c17db1)
Following LLVMs/Googles recommendation, ASAN should be run with optimization otherwise performance is awful (which it is for us). The asan build is currently by far the longest and it's just a build. I would like for us to one day run ASAN and TSAN tests and maybe even MSAN, but ASAN is the cheapest and less hassly to do it, because it has false negatives instead of false positives like the other sanitizers.
TODO: Make the setting respect if the user asked for a debug build or not.