This is an archive of the discontinued LLVM Phabricator instance.

[llvm][cmake] Use more generator expressions
Needs ReviewPublic

Authored by sebastian-ne on Dec 8 2022, 5:01 AM.

Details

Summary

Multi-config builds don’t have CMAKE_BUILD_TYPE set, instead, we should
use generator expressions to switch flags depending on the build type.

Do that for a couple of places that were relatively easy to convert.

Diff Detail

Event Timeline

sebastian-ne created this revision.Dec 8 2022, 5:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2022, 5:01 AM
sebastian-ne requested review of this revision.Dec 8 2022, 5:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2022, 5:01 AM