This is an archive of the discontinued LLVM Phabricator instance.

[libc++][C++20 modules] Tests no except build.
ClosedPublic

Authored by Mordante on Aug 25 2023, 10:08 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG6f8b17703da2: [libc++][C++20 modules] Tests no except build.
Summary

Depends on D158661

Diff Detail

Event Timeline

Mordante created this revision.Aug 25 2023, 10:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2023, 10:08 AM
Herald added a subscriber: arichardson. · View Herald Transcript
Mordante requested review of this revision.Aug 25 2023, 10:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2023, 10:08 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Sep 5 2023, 8:47 AM
ldionne added a subscriber: ldionne.

LGTM but we should take a look at target_compile_features.

libcxx/modules/CMakeLists.txt.in
42

Can we use a feature with target_compile_features here instead? That would likely solve the MSVC issue as well.

This revision is now accepted and ready to land.Sep 5 2023, 8:47 AM
Mordante marked an inline comment as done.Sep 5 2023, 9:28 AM
Mordante added inline comments.
libcxx/modules/CMakeLists.txt.in
42

Based on https://cmake.org/cmake/help/latest/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html#prop_gbl:CMAKE_CXX_KNOWN_FEATURES there is no such feature. For now I keep it as is. What is the MSVC issue we're having? Is there a bug report?

Note the goal is to remove this file in the future and let the build system do the right thing.

This revision was automatically updated to reflect the committed changes.
Mordante marked an inline comment as done.