There is a need to allow SanitizerBuilder to accept extra args so cmake args can be passed in, in turn allowing us to specify -j with cmake.
Details
Diff Detail
- Repository
- rZORG LLVM Github Zorg
Event Timeline
There are few comments for the buildbot part.
I didn’t look closely at the scripts part. At a quick glance adding quotation marks in multiple places wouldn’t work smoothly. You might end up with something you didn’t expect.
zorg/buildbot/builders/SanitizerBuilder.py | ||
---|---|---|
12 | This is cosmetic. Could you move this new parameter up, right after depends_on_projects, please? So we would have env and timeout at the end of the arguments. | |
37 | Did you want to add quotation marks around extra_configure_args value and missed it on the right hand side? If I get the idea right, you are trying to make sure the extra_configure_args you want to pass through would go as a single argument on each stage. If so, this might be tricky with respect to possible different shells and variations of quotation marks users could specify in extra_configure_args. The same stands for buildbot_selector.py. How about using something like -- to separate these args from other options which are to be handled in the calling script? Then it should be relatively easy to pass everything down and be transparent to quotation marks stripping by a shell and such. What do you think? Not a requirement for this path, just some loud thinking. | |
61 | If you make command an array, you would not need to bother with quotation marks. Buildbot will do that for you. Assuming something like -- is used for the pass through params. |
zorg/buildbot/builders/SanitizerBuilder.py | ||
---|---|---|
37 | that's actually a really good idea, thank you! I'll go ahead and do that. |
Changed from using strings to -- to improve portability; changed order of arguments. I'll update the dependent patch to properly reflect the changes made here.
Hm. This is weird.
I see a wrong patch assigned to this review now.,
The patch I see now adds "-CMAKE_ARGS=-DLLVM_LIT_ARGS=-v -j256" to extra_configure_args. Which is supposedly https://reviews.llvm.org/D98647.
But the patch I have seen before was good. :)
Not sure is this a Phabricator glitch.
Oh that is very weird. Let me reupload the differential for records sake. Would you mind taking a quick peak again @gkistanova, just to be on the safe side? Thank you!
This is cosmetic. Could you move this new parameter up, right after depends_on_projects, please? So we would have env and timeout at the end of the arguments.