From f1d87f8b4c430d72e7ab07e13508336a7841c3e6 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 21 Mar 2019 00:04:31 +0000 Subject: Allow disabling of filesystem library. Summary: Filesystem doesn't work on Windows, so we need a mechanism to turn it off for the time being. Reviewers: ldionne, serge-sans-paille, EricWF Reviewed By: EricWF Subscribers: mstorsjo, mgorny, christof, jdoerfert, libcxx-commits Differential Revision: https://reviews.llvm.org/D59619 llvm-svn: 356633 --- libcxx/utils/libcxx/test/config.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libcxx/utils') diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py index c78e18982ee..cac4d7c91b5 100644 --- a/libcxx/utils/libcxx/test/config.py +++ b/libcxx/utils/libcxx/test/config.py @@ -435,6 +435,9 @@ class Configuration(object): if self.long_tests: self.config.available_features.add('long_tests') + if not self.get_lit_bool('enable_filesystem', default=True): + self.config.available_features.add('c++filesystem-disabled') + # Run a compile test for the -fsized-deallocation flag. This is needed # in test/std/language.support/support.dynamic/new.delete if self.cxx.hasCompileFlag('-fsized-deallocation'): -- cgit v1.2.3