Ensuring the final string constructed for assignment to the lit_args variable is cast as a list item as it need to be in order to append it to the cmake_command variable. Also, adding some asserts to ensure we protect against incorrect types in the future.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Galina,
I may have gone a bit overboard with the asserts, happy to hear your (or any other) opinion on the matter.
Thanks,
Mike
Comment Actions
After review from silvas, used the asserts in a better manner. Also removed unneeded parenthesis from the lit_args join expression.
Comment Actions
I think, the only assert you really need here is the one for '-DLLVM_LIT_ARGS=', as it could be confusing and hard to detect. Wrong data type will fail cleanly with reasonable Python error and, up to me, does not worth a special handling. Please see more detailed explanations in D17493.
Thanks
Galina