This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Use NOT instead of STREQUAL
ClosedPublic

Authored by phosek on Sep 10 2021, 12:09 AM.

Details

Summary

<var> STREQUAL "" fails when <var> is unset which can be the
case when using runtimes as top-level build. Use NOT instead.

Diff Detail

Event Timeline

phosek created this revision.Sep 10 2021, 12:09 AM
phosek requested review of this revision.Sep 10 2021, 12:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 10 2021, 12:09 AM
mstorsjo accepted this revision.Sep 10 2021, 12:46 AM

LGTM, and sorry for the sloppy testing of the reland of this :-(

This revision is now accepted and ready to land.Sep 10 2021, 12:46 AM
This revision was landed with ongoing or failed builds.Sep 10 2021, 1:32 AM
This revision was automatically updated to reflect the committed changes.

LGTM, and sorry for the sloppy testing of the reland of this :-(

No worries and thanks for the quick review ;) The number of supported configuration makes it difficult to test everything. I hope it's something we can address over time.