Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21927384ybl; Mon, 6 Jan 2020 14:17:03 -0800 (PST) X-Google-Smtp-Source: APXvYqyaYKEDd6puukTk8a7KI1jmWLrskl1nDNk7RVf7R0JV2mdsR3Et1a96EvpUaEJmp9pJGoTn X-Received: by 2002:a9d:4902:: with SMTP id e2mr16352942otf.116.1578349023701; Mon, 06 Jan 2020 14:17:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578349023; cv=none; d=google.com; s=arc-20160816; b=ZTCUa0ZitSLIEvTLWFj0bG3kUKPGt5T6WU9759cpL12D22tsGx57uuujg/wnhkzR07 uxRvC6LpeLxIHUdq7vUT563Iz0a25ijtgSKWXat0z8hKTfvNGuWAn33xL0UZeSNGFCd2 o0PgBe8FNwKpHgWMUo22H9KqJFTgAv85ZrFlIGEoYkOOrGlkvVpl7y8pecrmOcnPAA1T 1TU86ZXJEOAvPWGgqgmSB7conapNIMeKLK5Bn5Ack3WCRtxa31OIa4ZLVzZ1VTrz3RZd RsiAmPorPsbaJr2yLygwymJgTWGP0biaWqPxkSwQ0SkiabiHzZWMrWOO1AG81Ws6naHX PRhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=iZFmEkhCTphA2jcs6BM5crnTey6oTYkf7QCSnnJ3SOw=; b=gHa6CYHlO0rIByobk5BAOUmGUlfgXUJrt7Xgn0yOmIaQXhffZAda8C+LIThxqK/Xz6 NAvCH035Lit/UY6hsfTumJF0OxAhotdFnIMDtEA1Z4MdyzGAtutG8VTTMRS4xfJTk3NP 0gKF+57pLZhQpYONPRGrHuwfzGYZ6SqPTGA9AEOUW8cGRk6+t3JEfuSx4H2jZoISVelX SVjaXCFyriWPHTqoB+E0wOArvDWVADB2+lLHC3dgmxbS32/qMvlM3+wzZ5yRU+xOA7Zs JbqROmyteUulTB/jVCJUBy2WO9BfI2ZQLq8wOZQRdWurDBnOIoAEwe6nsmcFz/VA9pl5 KR2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XWhdykjF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si35968016oti.39.2020.01.06.14.16.51; Mon, 06 Jan 2020 14:17:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XWhdykjF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727163AbgAFWQD (ORCPT + 99 others); Mon, 6 Jan 2020 17:16:03 -0500 Received: from mail-qv1-f67.google.com ([209.85.219.67]:35500 "EHLO mail-qv1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726731AbgAFWQD (ORCPT ); Mon, 6 Jan 2020 17:16:03 -0500 Received: by mail-qv1-f67.google.com with SMTP id u10so19653936qvi.2 for ; Mon, 06 Jan 2020 14:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=iZFmEkhCTphA2jcs6BM5crnTey6oTYkf7QCSnnJ3SOw=; b=XWhdykjFa/qkaeanWQQ6rLrc9TwA+fmEQ2ks3cstM9cCghj8fbJQ7r3reyOJD5mAYT lmQURUkJ6QzWE31cEGTmSSYp1I7Vqk9+IibmohBs53Q+eFY91wzwsJ01PFQAMaAyQ8qg 98dUU3F+KptosOHAT0cSX4SRVnpD3cZ5vqRDz7i3Svmzi8HJVKDIIqtdHjfoN91agIL7 6P4hCOozL/p4KpOyNNY9kCenJnJnQ6P6SHMh8AzX+HTFYx3GAQ2pAPCAkI6uURGfmxVg FdKsz8GY/zv35mJuYSF4NBC5ihhovU/WhKudAtiPWblFZkeJRhQxb32NjYcx0CunGScz i/BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=iZFmEkhCTphA2jcs6BM5crnTey6oTYkf7QCSnnJ3SOw=; b=uUSbFaXvBdZ/eJzl1QSsGu9yUEmKln25/pr6R5x22LKvtjZCu+QTeEnciQN+GaqAAW O+jTCWP6b9hjgRDiePag22DAqF1j16Y6tcN5KLwKJ7/R9vTc9G6IZwW1qdGPGRUPYAvY oCDBxN4EqVah3I3lTChB4lb6w2e9EsOxHE/WNZxxlDIgyQ0gDzyHgMCBh0Rs8ooWq18k XqhT8laxt96v0viKaEFGkArG8qsPrT6wwBJqn/P8orzvWkMfp6e7Zn876LOmBbMuXAu+ n/E5dFWE7QWAFMYd57qcalRjfq0I4I5yJIWa1Fr4nK2JXRz8pavxQcP6QEBPXJO0n8R+ yu2g== X-Gm-Message-State: APjAAAWREIYUghVTVYUZlSaGwYVZoFbZdP1SnQ02CvH/UJiMO5xDHlDC kv5TNKaZdWxrH5YxtDws1fU= X-Received: by 2002:ad4:4d91:: with SMTP id cv17mr71977440qvb.101.1578348962288; Mon, 06 Jan 2020 14:16:02 -0800 (PST) Received: from quaco.ghostprotocols.net ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id l4sm15904039qkb.37.2020.01.06.14.16.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 14:16:01 -0800 (PST) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id DB4E040DFD; Mon, 6 Jan 2020 19:15:59 -0300 (-03) Date: Mon, 6 Jan 2020 19:15:59 -0300 To: "Maciej S. Szmigiero" Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Dennis Schridde , Denis Pronin , Naohiro Aota , clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tools build: Fix test-clang.cpp with Clang 8+ Message-ID: <20200106221559.GF11285@kernel.org> References: <20191228171314.946469-1-mail@maciej.szmigiero.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191228171314.946469-1-mail@maciej.szmigiero.name> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sat, Dec 28, 2019 at 06:13:13PM +0100, Maciej S. Szmigiero escreveu: > LLVM rL344140 (included in Clang 8+) moved VFS from Clang to LLVM, so paths > to its include files have changed. > This broke the Clang test in tools/build - let's fix it. Thanks, applied. - Arnaldo > Signed-off-by: Maciej S. Szmigiero > --- > tools/build/feature/test-clang.cpp | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tools/build/feature/test-clang.cpp b/tools/build/feature/test-clang.cpp > index a2b3f092d2f0..7d87075cd1c5 100644 > --- a/tools/build/feature/test-clang.cpp > +++ b/tools/build/feature/test-clang.cpp > @@ -1,9 +1,15 @@ > // SPDX-License-Identifier: GPL-2.0 > +#include "clang/Basic/Version.h" > +#if CLANG_VERSION_MAJOR < 8 > #include "clang/Basic/VirtualFileSystem.h" > +#endif > #include "clang/Driver/Driver.h" > #include "clang/Frontend/TextDiagnosticPrinter.h" > #include "llvm/ADT/IntrusiveRefCntPtr.h" > #include "llvm/Support/ManagedStatic.h" > +#if CLANG_VERSION_MAJOR >= 8 > +#include "llvm/Support/VirtualFileSystem.h" > +#endif > #include "llvm/Support/raw_ostream.h" > > using namespace clang; -- - Arnaldo