浏览代码

Attempt to fix template depth test failures on older Clang versions

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@318625 91177308-0d34-0410-b5e6-96231b3b80d8
Eric Fiselier 7 年之前
父节点
当前提交
7228160964
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      utils/libcxx/test/config.py

+ 3 - 0
utils/libcxx/test/config.py

@@ -579,6 +579,9 @@ class Configuration(object):
         # Disable availability unless explicitely requested
         # Disable availability unless explicitely requested
         if not self.with_availability:
         if not self.with_availability:
             self.cxx.flags += ['-D_LIBCPP_DISABLE_AVAILABILITY']
             self.cxx.flags += ['-D_LIBCPP_DISABLE_AVAILABILITY']
+        # FIXME(EricWF): variant_size.pass.cpp requires a slightly larger
+        # template depth with older Clang versions.
+        self.cxx.addFlagIfSupported('-ftemplate-depth=270')
 
 
     def configure_compile_flags_header_includes(self):
     def configure_compile_flags_header_includes(self):
         support_path = os.path.join(self.libcxx_src_root, 'test', 'support')
         support_path = os.path.join(self.libcxx_src_root, 'test', 'support')