Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2325247ybl; Mon, 20 Jan 2020 00:29:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxY8Gtf3dHTQgOQxXm8pSYrief1sMHXS6bA37h8anJN9Fk5H9emaLj1mqfXoQp6na6nb/vK X-Received: by 2002:a9d:51ca:: with SMTP id d10mr14861287oth.76.1579508953908; Mon, 20 Jan 2020 00:29:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579508953; cv=none; d=google.com; s=arc-20160816; b=wW7/ZW4W+eicxumCPo/lILEgvglBuGZIIN20QZzKHoatR9gZgs2KIwijTfetannSJT flnZ6nXfTL4kUK+ide4lCieWa1APAFj2o9Adw8H4TmUgv7zuPSom16n9KB5+WVurJulQ aUmhFUXBjsZmpZwg1Q9l2PMu4IAwijWnADUj9TXUdA0vqeG+xGkmO3aYmzUq+2euAo87 PZgvDUfbyKuS7Ii05uLx9XFXAuSyhF9xhDLD2hGbE74eDZGer3uoZhMXPWEmTPO805tB nBdnXMEqGDm+GGKX5K+MSMR2gl8YY1hDiBBPTOklKcMGv5rdytaMUzSxTA7SAwQ9PlAD 5iOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=ZsFOYgCAEeb6oh9l/xVT+wRgqDnE98OG0lO0OpMzKx8=; b=kzUVZiCqB15qkhxQn+kKJtv6o+4Ckg5E76QMy1igwg+wI6RwRMHpZk7Ce+7WgAr74E GjUHbsS36LqwuD4XU9vOuu39fMYIhFOYP3rVqR0L6jZTXbJ6jtr28oS1Q5MlbuYN4Acu g4hRdngs6Xylml8ehOkLFKJDGjoAaeR2yXha4BuRMbbLSV1w3pLc50qHpOxFrRgtkaIw oUsbI1kdjF5QDkMmTklFJAAGbugk5a7UjrFLSSMiFmB8UhaYOOk2ryZIy2Ru84lYV+M2 o8Nsj8VoKNbuCtdIz0tTsrrHRSIHydr1ilxphq9BgKSW3KPDvr/v3ZvfNnpMjILgZ+wu QE8g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si20630228oth.11.2020.01.20.00.29.02; Mon, 20 Jan 2020 00:29:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728843AbgATI1p (ORCPT + 99 others); Mon, 20 Jan 2020 03:27:45 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:60803 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727465AbgATI12 (ORCPT ); Mon, 20 Jan 2020 03:27:28 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1itSOx-0002uo-Db; Mon, 20 Jan 2020 09:27:15 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 135B91C1A3E; Mon, 20 Jan 2020 09:27:15 +0100 (CET) Date: Mon, 20 Jan 2020 08:27:14 -0000 From: "tip-bot2 for Maciej S. Szmigiero" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] tools build: Fix test-clang.cpp with Clang 8+ Cc: "Maciej S. Szmigiero" , Alexander Shishkin , Denis Pronin , Dennis Schridde , Jiri Olsa , Mark Rutland , Namhyung Kim , Naohiro Aota , Peter Zijlstra , clang-built-linux@googlegroups.com, Arnaldo Carvalho de Melo , x86 , LKML In-Reply-To: <20191228171314.946469-1-mail@maciej.szmigiero.name> References: <20191228171314.946469-1-mail@maciej.szmigiero.name> MIME-Version: 1.0 Message-ID: <157950883490.396.9434688341680423539.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: d8007772a5541b4711d1286b788ad4295b2c7eaa Gitweb: https://git.kernel.org/tip/d8007772a5541b4711d1286b788ad4295b2c7eaa Author: Maciej S. Szmigiero AuthorDate: Sat, 28 Dec 2019 18:13:13 +01:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Tue, 14 Jan 2020 12:02:19 -03:00 tools build: Fix test-clang.cpp with Clang 8+ 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. Signed-off-by: Maciej S. Szmigiero Cc: Alexander Shishkin Cc: Denis Pronin Cc: Dennis Schridde Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Naohiro Aota Cc: Peter Zijlstra Cc: clang-built-linux@googlegroups.com Link: http://lore.kernel.org/lkml/20191228171314.946469-1-mail@maciej.szmigiero.name Signed-off-by: Arnaldo Carvalho de Melo --- 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 a2b3f09..7d87075 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;