This is an archive of the discontinued LLVM Phabricator instance.

OpenMP/cmake: Use list append instead of repeating variable name
ClosedPublic

Authored by arsenm on Jun 23 2023, 6:58 AM.

Diff Detail

Event Timeline

arsenm created this revision.Jun 23 2023, 6:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2023, 6:58 AM
arsenm requested review of this revision.Jun 23 2023, 6:58 AM
jhuber6 accepted this revision.Jun 23 2023, 7:01 AM

LG, assuming this works. Sometimes there's small differences between a string separated by spaces and semicolons in CMake but I'm not sure if we depend on that behavior.

This revision is now accepted and ready to land.Jun 23 2023, 7:01 AM

LG, assuming this works. Sometimes there's small differences between a string separated by spaces and semicolons in CMake but I'm not sure if we depend on that behavior.

It's pretty terrible but in my experience you're better off leaving things as lists

It's pretty terrible but in my experience you're better off leaving things as lists

Agreed, If you want to be even terser you can use a foreach and list all the strings as well.