Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1551839pxu; Sat, 5 Dec 2020 22:54:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFG3qNJStQ+N62l6NT2AGRJ0bHogeXH0NhGidF0fQyspPOQwYDF58XF7Rnjms5rU20V5h7 X-Received: by 2002:a05:6402:312c:: with SMTP id dd12mr14983623edb.327.1607237649916; Sat, 05 Dec 2020 22:54:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607237649; cv=none; d=google.com; s=arc-20160816; b=dWnYUe4bqmd+kaZSuQmUc9ondP+sabYvGNl4tTXwBShsmpmtt81F8HLst5Fs3aK3x8 S884F0VBMjvN5bo2Dgw+emycAz01/02AK7AR1HnAMKfTWbZSCwf8MmEmLfy9dmOksniS MTnkr8sPJ65NVY+gMv8flYiJ9mtw5V/lrncH4rH5fPiErJsiTB4V6fnHZt89LXt/2DIF 9c3VMv1kxwM1Ohym02IDQV6peDb5sQno0JNkgAQxZ5CWxpRVyH3vSXP4Dx/5jkViJOFi vRbSsyjO8wolfn4hhRpP2FbRlSZCPUZfxn69u1B3uOonHbnCqKHtbdE+YtXRRvMBdaaR GN9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xEFX9m1tSvdSJQ3/EiaRpiuUqPA/jqJsIXCgLkJIHTI=; b=AL8AtrRMqjGzQq2y7wgRNpDkIzZ666x+OO2vJm5FLLsR0cBDh8vd4YYimPHGxxwODw n7QMeJvM02D1TV3ymqjXdzF7w+5FlJAYt+p9kOD6TPKWc7oQEPTvwFQQtb/5m7u+mFG9 QEIAOTGS+zyN34rHjyASzHvDj7BGi9rhM5LQXx012/mo71emiguSdHACwAmPTH1fhOI8 AbX9c6BTHEP6JbRZtJc9NVeEFVKRlveiMGGhVgBIKuaPwf2jQDUlOGU8QaqymJa69Qg5 meKe2YxQ0BZ4NUUTuDtJhfWmCt3Vp/itZ0q9DT2222oitxJgGb3ypgwcpmPRFyn+IhUx ECWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DzK6LtMp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id r1si4577566ejh.137.2020.12.05.22.53.47; Sat, 05 Dec 2020 22:54:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DzK6LtMp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726519AbgLFGvT (ORCPT + 99 others); Sun, 6 Dec 2020 01:51:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbgLFGvS (ORCPT ); Sun, 6 Dec 2020 01:51:18 -0500 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFAA8C0613D0; Sat, 5 Dec 2020 22:50:32 -0800 (PST) Received: by mail-io1-xd41.google.com with SMTP id r9so10168285ioo.7; Sat, 05 Dec 2020 22:50:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xEFX9m1tSvdSJQ3/EiaRpiuUqPA/jqJsIXCgLkJIHTI=; b=DzK6LtMphXGVMKUPACceGTUsVVmN1cNs/QClR/+YjCKMnWe4BnLQBIJsKr7tKxkNyY w8fYOkrp4AJry9LpefYGu1ZK0PRDfStCJRHpd340BZOhkyFknzV9Qv1a8xkVOdyY9zFf gj6zMq1tQBs9MJGB2si/iNyk8qcAPb1OkxqdQ0kknvb2P9OxzdM9jt0tLWQNa3/KRgUW 26EXDEONiip05JtUgT3RheVciiRVzO2cil6qzk6OBDikvUihqXg+enkPIQLrcSwu//N1 F9oG7BK1bIa+jJndHBOVysL6/gUrP1m+nsgJWeLkzCRdImG92pho9jGdEKn0kHXouQT4 KWgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xEFX9m1tSvdSJQ3/EiaRpiuUqPA/jqJsIXCgLkJIHTI=; b=U7GtvkKDm7TRWA95HV5KbJYsyVb4eET/SBEyYuQLmyureDm5cZADZuMXbBgmIYXBzZ Tse6wUSKxXp7ymv3aS2rEwRPj7FvZZ0nEq4zKclEixBKBypaYe84eTWsCB3sD20X1o/k cA5Cj/mo6A1HqWx+B4NPis5EEuvvLa44XxVqom8UrznYcFORrPus3tMPWM25FuWaPd/E jOWkC+GWS7HMeK/BpmYSUn+H+cB5G8aGFu79QLKSDCom76sutIV4eLrDG/BCCDHbOXKz ahdxoS2XzW/skNbjSgtrqZQ6bLtgxSSTGrgEpXxgdtbhyl7dTqPTdZeGImOcktzHazCf BSHQ== X-Gm-Message-State: AOAM533MFKHfzni8Ou4ZDNIP/0pIL9jOZxihVn0KYQp4A0JH13aZTyP5 FpnsihFuMpI2HrqphV8xPkI= X-Received: by 2002:a5d:958b:: with SMTP id a11mr13034197ioo.160.1607237432100; Sat, 05 Dec 2020 22:50:32 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id v23sm4068308iol.21.2020.12.05.22.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2020 22:50:30 -0800 (PST) Date: Sat, 5 Dec 2020 23:50:28 -0700 From: Nathan Chancellor To: Sami Tolvanen Cc: Nick Desaulniers , Will Deacon , Masahiro Yamada , Steven Rostedt , Josh Poimboeuf , Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , clang-built-linux , Kernel Hardening , linux-arch , linux-arm-kernel , linux-kbuild , LKML , PCI , Jian Cai , Kristof Beyls Subject: Re: [PATCH v8 00/16] Add support for Clang LTO Message-ID: <20201206065028.GA2819096@ubuntu-m3-large-x86> References: <20201201213707.541432-1-samitolvanen@google.com> <20201203112622.GA31188@willie-the-truck> <20201203182252.GA32011@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 04, 2020 at 02:52:41PM -0800, Sami Tolvanen wrote: > On Thu, Dec 3, 2020 at 2:32 PM Nick Desaulniers wrote: > > > > So I'd recommend to Sami to simply make the Kconfig also depend on > > clang's integrated assembler (not just llvm-nm and llvm-ar). > > Sure, sounds good to me. What's the preferred way to test for this in Kconfig? > > It looks like actually trying to test if we have an LLVM assembler > (e.g. using $(as-instr,.section > ".linker-options","e",@llvm_linker_options)) doesn't work as Kconfig > doesn't pass -no-integrated-as to clang here. I could do something > simple like $(success,echo $(LLVM) $(LLVM_IAS) | grep -q "1 1"). > > Thoughts? > > Sami I think depends on $(success,test $(LLVM_IAS) -eq 1) should work, at least according to my brief test. Cheers, Nathan