[rootcling] Construct options after resetting parser#13372
[rootcling] Construct options after resetting parser#13372stephanlachnit wants to merge 1 commit intoroot-project:masterfrom
Conversation
|
Starting build on |
|
Build failed on ROOT-ubuntu2004/python3. |
4801498 to
33df5ac
Compare
|
Starting build on |
|
Build failed on ROOT-ubuntu2004/python3. |
|
Build failed on mac11/noimt. Failing tests: |
|
Aren't we relying on some LLVM options that rootcling does not declare explicitly, and that we would lose by resetting the options, iiuc? @vgvassilev ? |
|
As I have mentioned in the original issue, this is not a direction I’d like to go. It does not fix the original issue and seems to deviate from the way llvm suggests using the command line options. |
|
Build failed on ROOT-debian10-i386/soversion. Failing tests: |
|
@stephanlachnit given your progress in understanding the root cause in the other issue are you okay with closing this PR? |
I haven't yet checked this - I will close it once I confirmed it works with static system libs as well. |
Confirmed that with #13420 this is not needed anymore. |
This Pull request:
Construct the
llvm::cloptions in the main function and reset the parser before. This removes any predefined options registered by LLVM (see llvm::cl docs).Changes or fixes:
Allows building with vanilla LLVM, see also #12156 (comment)
Checklist:
This PR fixes #12156
Note on clang-format: the entire file is very clang-format unclean. I tried my best to make it look readable, if you want to clang-format it I would propose to do it separately as it changes almost every line in the file.