From 9f1188246e85eb6451961e8dc71d121be5ad8a04 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Thu, 28 Jan 2016 13:49:33 +0000 Subject: [PATCH] [libcxx] Work around for clang calling GAS after having already failed. Summary: This is a workaround to a clang bug which causes libcxx tests to fail in the 3.8 release. The clang bug is currently being investigated. It seems that clang does not stop after frontend errors when using -verify and -fno-integrated-as (or when this is the default). This patch adds -fsyntax-only to prevent GAS from being called, fixing the libcxx failures. PR26277 Patch by Eric Fiselier Reviewers: mclow.lists, hans, EricWF Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D16584 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@259046 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/libcxx/test/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/libcxx/test/format.py b/test/libcxx/test/format.py index ca934a4b3..aaa9a1845 100644 --- a/test/libcxx/test/format.py +++ b/test/libcxx/test/format.py @@ -161,7 +161,7 @@ class LibcxxTestFormat(object): 'expected-error', 'expected-no-diagnostics'] use_verify = self.use_verify_for_fail and \ any([tag in contents for tag in verify_tags]) - extra_flags = [] + extra_flags = ['-fsyntax-only'] if use_verify: extra_flags += ['-Xclang', '-verify', '-Xclang', '-verify-ignore-unexpected=note']