This is an archive of the discontinued LLVM Phabricator instance.

[libcxx][test] compiler options are non-portable
ClosedPublic

Authored by CaseyCarter on Jan 16 2022, 1:55 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG4e00a1921fb1: [libcxx][test] compiler options are non-portable
Summary

... it's easier to suppress warnings internally, where we can detect the compiler.

  • Rename TEST_COMPILER_C1XX to TEST_COMPILER_MSVC
  • Rename all TEST_WORKAROUND_C1XX_<meow> to TEST_WORKAROUND_MSVC_<meow>

Diff Detail

Event Timeline

CaseyCarter requested review of this revision.Jan 16 2022, 1:55 AM
CaseyCarter created this revision.
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald TranscriptJan 16 2022, 1:55 AM
ldionne requested changes to this revision.Jan 17 2022, 8:18 AM

Could we include "test_macros.h" and use TEST_COMPILER_CLANG/TEST_COMPILER_C1XX instead? (By the way, it seems to me that TEST_COMPILER_C1XX should be renamed to something more sensible).

This revision now requires changes to proceed.Jan 17 2022, 8:18 AM
CaseyCarter edited the summary of this revision. (Show Details)

Address review comments.

Could we include "test_macros.h" and use TEST_COMPILER_CLANG/TEST_COMPILER_C1XX instead?

Done.

(By the way, it seems to me that TEST_COMPILER_C1XX should be renamed to something more sensible).

Renamed "C1XX" to "MSVC" everywhere except for one comment about "Microsoft's C1XX front end" where the precision seems significant.

ldionne accepted this revision.Jan 18 2022, 7:16 AM
This revision is now accepted and ready to land.Jan 18 2022, 7:16 AM
This revision was automatically updated to reflect the committed changes.