Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp12302912ybl; Sat, 28 Dec 2019 09:15:48 -0800 (PST) X-Google-Smtp-Source: APXvYqxRnahiVzwWRkZnuID/GVe1INgxvm7OIOnwNYlv6q6/oNvQcs6b7ea//PepSiQHECuzI8Oj X-Received: by 2002:a9d:750b:: with SMTP id r11mr59307952otk.209.1577553348352; Sat, 28 Dec 2019 09:15:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577553348; cv=none; d=google.com; s=arc-20160816; b=F86zVsMYXo/dqXWKz8dKoysdi5eU7Od09/KSbzcHfcA9srgw3HWWrWF40JL3NE7o/M Qxyaqcwf2SKg/xD0FyWXQFjktHTx6xGhG7iTXdZoj3Cql6Mb+PGO2LJMtlGUZkDBJ5L5 BJswH6ga3GOn/Eo7+5dTVvZvwrlkqjJSxtpNbeyI685enQwj1dwwcOugx3OhC/pvlV9P sWB69j5bJ/yfhSt3TzXzpTP7SLxZz0cS67hoOmVJszmm/so4Oa63ckpb/M2f+R0rmi2I 7jHK82sIJoIe8lEg4YGixM/AevOPvksmbnLTgfXH27X1EFxrfe/CWi07R5r10W0qpJL0 zInw== 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:mime-version :message-id:date:subject:cc:to:from; bh=3iQlGyf/uI4YLyKdha/5TVh0FS8KuScOhE+aiMfz57Y=; b=vvgV4Y+xj+P8bMHh1fEODgrPBM3APVBg52hc+dbMOGWGsvc1JxiEoNwM03MSTdngMs 9OPsxApeMaoWpM8AAwWpQAMqiUejVcM/MC4tK8zzwoc6V7lhw7jJV3OjnYpMpCZpHlQV TC8V1Hi8R7kOJezCY5j+A5ILg3VDFox4Q+JgwCViWP1I4PliHo/cmYaGS3J26NZ3CH0z YgSistKzSzH4ky9xG+fwDtAYnl76As0wew2Cj30K6rDoJ5+2cNBj1HcZDPF9+4SmNRkD jttx9Lm964hy/NWEgGcO2rkZOgEIyqBIzwcZJ8881ZUQqOtyDhG38Ofs/M1HlwBzk9rC zfWg== 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 l18si19909994oth.236.2019.12.28.09.15.36; Sat, 28 Dec 2019 09:15:48 -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 S1726388AbfL1RNl (ORCPT + 99 others); Sat, 28 Dec 2019 12:13:41 -0500 Received: from vps-vb.mhejs.net ([37.28.154.113]:34486 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbfL1RNl (ORCPT ); Sat, 28 Dec 2019 12:13:41 -0500 Received: from MUA by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1ilFeS-0003Tk-IR; Sat, 28 Dec 2019 18:13:20 +0100 From: "Maciej S. Szmigiero" To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Cc: 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: [PATCH] tools build: Fix test-clang.cpp with Clang 8+ Date: Sat, 28 Dec 2019 18:13:13 +0100 Message-Id: <20191228171314.946469-1-mail@maciej.szmigiero.name> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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;