Index: libcxx/utils/libcxx/test/params.py =================================================================== --- libcxx/utils/libcxx/test/params.py +++ libcxx/utils/libcxx/test/params.py @@ -37,6 +37,19 @@ '-Wno-unused-local-typedef', ] +_allFreestandingActions = [ + AddFeature('libcpp-any-freestanding'), + AddFeature('libcpp-has-no-global-filesystem-namespace'), + AddFeature('libcpp-has-no-monotonic-clock'), + AddFeature('libcpp-has-no-stdin'), + AddFeature('libcpp-has-no-stdout'), + AddFeature('libcpp-has-no-thread-unsafe-c-functions'), + AddFeature('libcpp-has-no-threads'), + AddFeature('libcpp-no-vcruntime'), + AddFeature('libcpp-has-no-random-device'), + AddFeature('libcpp-has-no-localization'), +] + DEFAULT_PARAMETERS = [ # Core parameters of the test suite Parameter(name='std', choices=_allStandards, type=str, @@ -110,4 +123,7 @@ actions=lambda enabled: [] if enabled else [ AddFeature('libcxx-no-debug-mode') ]), + Parameter(name='freestanding', choices=[True, False], type=bool, default=False, + help="Whether to disable tests only supported on hosted platforms.", + actions=lambda enabled: [] if not enabled else _allFreestandingActions), ]