Adding a extraLitArgs variable to be able to pass a list of extra lit args in from the builder definition. Also, did a bit of cleanup and removed an old FIXME which has been hanging out for a while.
Details
Diff Detail
Event Timeline
zorg/buildbot/builders/ClangAndLLDBuilder.py | ||
---|---|---|
111 | Maybe just let user define -DLLVM_LIT_ARGS with extraCmakeOptions param instead? With a meaningful default, let's say "-v". With the current approach, you may end up having multiple conflicting -DLLVM_LIT_ARGS, one coming from extraCmakeOptions, and the other one coming from extraLitArgs. The other option is to assert on having -DLLVM_LIT_ARGS in extraCmakeOptions. This is up to you which option to choose. |
zorg/buildbot/builders/ClangAndLLDBuilder.py | ||
---|---|---|
104 | Did you mean checking extraCmakeOptions instead? extraCompilerOptions are C/C++ flags... However, this assert would not work as you think it is. assert any(a.startswith('-DLLVM_LIT_ARGS=') for a in extraCmakeOptions, "Please use extraLitArgs for LIT arguments instead of defining them in extraCmakeOptions." |
Did you mean checking extraCmakeOptions instead? extraCompilerOptions are C/C++ flags...
However, this assert would not work as you think it is.
You want something similar to this: