# Filesystem is supported on Apple platforms starting with macosx10.15.
# Automatically disable the <filesystem> tests when we're running the test
# suite against an older macOS.
too_old = {'10.9', '10.10', '10.11', '10.12', '10.13', '10.14'}
if 'use_system_cxx_lib' in config.available_features:
  if any('target=x86_64-apple-macosx{}'.format(v) in config.available_features for v in too_old):
    config.unsupported = True

if 'libcpp-has-no-filesystem-library' in config.available_features:
    config.unsupported = True
