From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com ([217.140.110.172]:39904 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726885AbgAQLd4 (ORCPT ); Fri, 17 Jan 2020 06:33:56 -0500 Date: Fri, 17 Jan 2020 11:33:51 +0000 From: Catalin Marinas Subject: Re: [PATCH v3 14/16] kconfig: Add support for 'as-option' Message-ID: <20200117113351.GF26090@arrakis.emea.arm.com> References: <1576486038-9899-1-git-send-email-amit.kachhap@arm.com> <1576486038-9899-15-git-send-email-amit.kachhap@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1576486038-9899-15-git-send-email-amit.kachhap@arm.com> Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Amit Daniel Kachhap Cc: linux-arm-kernel@lists.infradead.org, Mark Rutland , Kees Cook , Ard Biesheuvel , Suzuki K Poulose , Will Deacon , Ramana Radhakrishnan , Kristina Martsenko , Dave Martin , James Morse , Vincenzo Frascino , Mark Brown , Richard Henderson , Masahiro Yamada , linux-kbuild@vger.kernel.org On Mon, Dec 16, 2019 at 02:17:16PM +0530, Amit Daniel Kachhap wrote: > diff --git a/scripts/Kconfig.include b/scripts/Kconfig.include > index d4adfbe..cc465dd 100644 > --- a/scripts/Kconfig.include > +++ b/scripts/Kconfig.include > @@ -31,6 +31,10 @@ cc-option = $(success,$(CC) -Werror $(CLANG_FLAGS) $(1) -E -x c /dev/null -o /de > # Return y if the linker supports , n otherwise > ld-option = $(success,$(LD) -v $(1)) > > +# $(as-option,) > +# Return y if the assembler supports , n otherwise > +as-option = $(success, $(CC) $(CLANG_FLAGS) $(1) -E -x assembler /dev/null -o /dev/null) I had different experiments with this for MTE and noticed that clang does not honour the -Wa, option (which you use in a subsequent patch). So not sure how useful as-option is. -- Catalin