Skip to content

Commit 0c0628c

Browse files
committed
[libc++] Remove ad-hoc modules tests that are now unnecessary
Since we now have modules-enabled CI, it is now redundant to have ad-hoc tests that check arbitrary things about our modules support. Instead, the whole test suite should pass with modules enabled, period. This patch also removes the module cache path workaround: one would expect that modules work properly without that workaround. If that isn't the case and we do run into flaky test failures, we can re-enable the workaround temporarily (but that would be very vexing and we should fix Clang ASAP if that's the case). Differential Revision: https://reviews.llvm.org/D104746
1 parent 707224e commit 0c0628c

File tree

7 files changed

+0
-200
lines changed

7 files changed

+0
-200
lines changed

libcxx/test/libcxx/modules/cinttypes_exports.compile.pass.cpp

Lines changed: 0 additions & 31 deletions
This file was deleted.

libcxx/test/libcxx/modules/clocale_exports.compile.pass.cpp

Lines changed: 0 additions & 32 deletions
This file was deleted.

libcxx/test/libcxx/modules/cstdint_exports.compile.pass.cpp

Lines changed: 0 additions & 31 deletions
This file was deleted.

libcxx/test/libcxx/modules/inttypes_h_exports.compile.pass.cpp

Lines changed: 0 additions & 30 deletions
This file was deleted.

libcxx/test/libcxx/modules/stdint_h_exports.compile.pass.cpp

Lines changed: 0 additions & 28 deletions
This file was deleted.

libcxx/test/libcxx/modules/stds_include.sh.cpp

Lines changed: 0 additions & 39 deletions
This file was deleted.

libcxx/utils/libcxx/test/features.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@
4343
sys.platform.lower().strip() == 'darwin'), # TODO: this doesn't handle cross-compiling to Apple platforms.
4444
Feature(name='objective-c++', when=lambda cfg: hasCompileFlag(cfg, '-xobjective-c++ -fobjc-arc')),
4545

46-
# Note: We use a custom modules cache path to make sure that we don't reuse
47-
# the default one, which can be shared across builds. This is important
48-
# because we define macros in headers files, and a change in these macros
49-
# doesn't seem to invalidate modules cache entries, which means we could
50-
# build against now-invalid cached headers from a previous build.
51-
Feature(name='modules-support',
52-
when=lambda cfg: hasCompileFlag(cfg, '-fmodules'),
53-
actions=lambda cfg: [AddCompileFlag('-fmodules-cache-path=%t/ModuleCache')]),
54-
5546
Feature(name='non-lockfree-atomics',
5647
when=lambda cfg: sourceBuilds(cfg, """
5748
#include <atomic>

0 commit comments

Comments
 (0)