This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Check MSVC flag directly instead of setting LIBCXX_TARGETING_MSVC
ClosedPublic

Authored by DavidSpickett on Jul 7 2023, 2:56 AM.

Details

Summary

MSVC is set for actual msvc and clang-cl. LIBXX_TARGETTING_CLANG_CL is
still used over in runtimes to configure warning flags.

Diff Detail

Event Timeline

DavidSpickett created this revision.Jul 7 2023, 2:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2023, 2:56 AM
DavidSpickett requested review of this revision.Jul 7 2023, 2:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2023, 2:56 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

Remove TARGETING_MSVC value.

Looking at a clang-cl build in CI I see:

_bk;t=1688719464638-- Configuring for clang-cl
_bk;t=1688719464638-- Configuring for MSVC

Which proves that MSVC is also set for clang-cl. The LIBCXX_TARGETING...

DavidSpickett retitled this revision from [libcxx] For no-rtti flags, check MSVC value directly to [libcxx] Check MSVC flag directly instead of setting LIBCXX_TARGETING_MSVC.Jul 7 2023, 3:01 AM
DavidSpickett edited the summary of this revision. (Show Details)

Remove empty else.

ldionne accepted this revision.Jul 7 2023, 2:23 PM
ldionne added a subscriber: ldionne.

Thanks for the cleanup!

This revision is now accepted and ready to land.Jul 7 2023, 2:23 PM