-
Notifications
You must be signed in to change notification settings - Fork 10.5k
On Linux build LLVM and subprojects with -gsplit-dwarf which is more … #27407
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
Conversation
@swift-ci test |
The change looks good, but the indention seems off. |
…space/time efficient than -g on that platform. This improves time spent to link products built with debug info quite a bit.
e25a751
to
9b6ff03
Compare
Turns out that file mixes tabs & spaces quite a bit. |
@swift-ci test |
Build failed |
Build failed |
@swift-ci test |
Build failed |
Build failed |
Y'all picked up source kit LSP failures @swift-ci please test |
Build failed |
@swift-ci test |
@adrian-prantl: Hi. I babysit the Android community builds (https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android-arm64/ and https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/). They have been failing from this afternoon. From the commits of the first failing build (https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-android/4076/), this one is probably the one that introduced the problem, since it seems that the disk space is involved. From what I can find online, and my understanding, Does this result makes sense? I don't know if the linking time is better, but at least in those machines the disk space seems to be much worse (by the way, the machines are using If you are planning more changes like this (enabling the option for more products, or something like that), can you give me a heads up, so I can have a closer look to the builds and react faster? Thanks! PD: please, do not revert this, I should be able to find the right amount of disk space. My questions are more about curiosity than anything. |
That is unexpected, I'm sorry! As you said, this is expected to be roughly disk space neutral, with a much lower RAM and CPU usage during link time. I'd be happy to revert this change, too, if it causes problems. After all it was meant to be to the benefit Linux users, not the opposite. Why are those bots building with debug info? Is that so you can get better crash backtraces? Would it make sense to turn debug info off on the bots? Can you post some numbers on disk usage before & after? I'd be curious where the difference comes from. (Whether it's the .o files or the final build products, etc.) I can also try to collect them, but I'm assuming you're already set up for this. |
Please, as I wrote before, I don't think this should be reverted. I was just asking to know if it makes sense what I was seeing or not. Increasing the disk is easy, and knowing how much is LLVM now makes easy to do the math. Those bots, as far as I know do not build with debug info, even if the preset is called I have another machine with a very similar configuration to those two where I can do those tests you ask. |
@adrian-prantl: I am probably wrong, but I was looking at https://github.com/apple/swift-llvm/blob/stable/cmake/modules/HandleLLVMOptions.cmake, and it seems that enabling |
Good find! I'll update build script then. |
…space/time
efficient than -g on that platform. This improves time spent to link products
built with debug info quite a bit.