From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CE7EC5B578 for ; Wed, 3 Jul 2019 23:46:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E460C2187F for ; Wed, 3 Jul 2019 23:46:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="pBRcwDlq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727477AbfGCXq2 (ORCPT ); Wed, 3 Jul 2019 19:46:28 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:49771 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726562AbfGCXq2 (ORCPT ); Wed, 3 Jul 2019 19:46:28 -0400 Received: from mail-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x63NkMsr028613; Thu, 4 Jul 2019 08:46:23 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x63NkMsr028613 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1562197583; bh=rJ6iT0au4ngG40wf1ctFNsLJ/Vpo/OHLwWrHUVVL5n0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=pBRcwDlq9QFS40kSn8o+W7JGHIB79v1LZjAh3vvRvVw8IrJ6O2xZ/cIv0hfHjJ3lu BBcuNtOlojoeFW36HV75idpBRFfMseVcxkOKBmROLyZJ0pP482hPlEG4i8whHyNq6Z 6NuKc8rQbEAF5UNrDPSJhV7Sr0TzhZV7lRirDE1dIVIj9o3+6k2/PAiqFf6FQYVBwb 0o3oPO1SPmEtPo1/KCbwsWC9AynWROzjRkBj3g/yQUQtld2dX6rDtoczTStdnns+Ps WFvU00oSs4KkBeHvTrTF6xHujq2xbZE/ER0eDlnfGb2bnMPYXVLyO45/utiBaHgyqc 5413gbq4asObg== X-Nifty-SrcIP: [209.85.217.41] Received: by mail-vs1-f41.google.com with SMTP id r3so897047vsr.13; Wed, 03 Jul 2019 16:46:23 -0700 (PDT) X-Gm-Message-State: APjAAAWOWXuuD0GcZyguIysmxKxgOi9g0nieHWJ616ZEnifL8dJYFHvo hAiGNSAgQlxmFTKWYpvCs1zE7V2kBEitW1UD3lE= X-Google-Smtp-Source: APXvYqygjbgdBLzYA0azdr6k7nnoESGst/swxhWFdByz3nqGXi0UFBizFXN+MN+2HjMPTCzfmxg0UBCFEEo0oK19Z7I= X-Received: by 2002:a67:f495:: with SMTP id o21mr19975775vsn.54.1562197582238; Wed, 03 Jul 2019 16:46:22 -0700 (PDT) MIME-Version: 1.0 References: <20190627191448.110756-1-natechancellor@gmail.com> In-Reply-To: <20190627191448.110756-1-natechancellor@gmail.com> From: Masahiro Yamada Date: Thu, 4 Jul 2019 08:45:46 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: Add ability to test Clang's integrated assembler To: Nathan Chancellor Cc: Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , clang-built-linux , Dmitry Golovin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 28, 2019 at 4:15 AM Nathan Chancellor wrote: > > There are some people interested in experimenting with Clang's > integrated assembler. To make it easy to do so without source > modification, allow the user to specify 'AS=clang' as part of the > make command to avoid adding '-no-integrated-as' to the {A,C}FLAGS. > > Link: https://github.com/ClangBuiltLinux/linux/issues/577 > Suggested-by: Dmitry Golovin > Signed-off-by: Nathan Chancellor Applied to linux-kbuild. Thanks. > --- > Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Makefile b/Makefile > index 5102b2bbd224..d77481129339 100644 > --- a/Makefile > +++ b/Makefile > @@ -527,7 +527,9 @@ endif > ifneq ($(GCC_TOOLCHAIN),) > CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN) > endif > +ifeq ($(shell $(AS) --version 2>&1 | head -n 1 | grep clang),) > CLANG_FLAGS += -no-integrated-as > +endif > CLANG_FLAGS += -Werror=unknown-warning-option > KBUILD_CFLAGS += $(CLANG_FLAGS) > KBUILD_AFLAGS += $(CLANG_FLAGS) > -- > 2.22.0 > -- Best Regards Masahiro Yamada