Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3728145rwa; Tue, 23 Aug 2022 09:08:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ArZQViw0HR2vg8NLTeKhtfI++ptF+/PG9WwNaxlLJAPbbUrAsEo/u9cGS489etzaIlXwf X-Received: by 2002:a17:907:2e02:b0:73d:7c00:d795 with SMTP id ig2-20020a1709072e0200b0073d7c00d795mr205578ejc.562.1661270905834; Tue, 23 Aug 2022 09:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661270905; cv=none; d=google.com; s=arc-20160816; b=yd0epIqmCUkLND5NNotuFcNhfTrL73EvxJmmdL6817DtitnWA0i6DMSl7PSX8Iwms1 elDtT8LC6fS3wv2lsOF9TVw6cjEXnqA8WXE8+BKBm24gSYlZQKhQBOhUiqfblowdLDNF BEPe8aFhj/5irIDUg5VqQoaQDrKSURJN9D236UGVtwyo51p45p8fZrNrySPGbpByITIk 4NQ3OSQpM8CLv+AzzYrUOPMiBZ+vqWC2W5nZNAFj1D2UrMsqsNdBm5sB+Lgn1ULPuZAG hsBoxa9vKe9WLsYyrceJc0TCOAWocAfQdk8/5+n7ukYNop0HPBuF6jJMGck/7OuTWjeg qgsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qnlJbX7XO6SmNHU1bkg4hqymkER7fnKUTpqUuxqDC9Q=; b=FiT+fd0KJRJ7LcuLdQYXc3TRmDHQ3rdZFC4xaQ3sfR43yK+6VFeqDw57HDKHGJCqs4 0ZCCM1+Hsv53ppFXOoYzAzXbAXMsxTgdfXp1RjKYD2fWJnucOWRfwEI/hwZyfeh+bEtj Bp+tfBQDR8byoxP6xAijaRMgyYlRYnVnzvUfV/YL9bLaGk/OTaOTOQ9jkXzRn54+0sjP hnqAqvDNl/zSR4UgXzMgWFQYMKV1JN/vBtVoQ8yVRiqiejlk2gQxcLW4sZvORISWsJx8 IRPRFpAxG7tZ93tFqjIGXM8TYjLZVma1TGGJSGGfqmY+zdzuCS3CQaxoaEv7ZhMYqkdN rf+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YvkTldU5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt37-20020a1709072da500b0073ccfb22163si90285ejc.497.2022.08.23.09.07.58; Tue, 23 Aug 2022 09:08:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YvkTldU5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S243984AbiHWQEn (ORCPT + 99 others); Tue, 23 Aug 2022 12:04:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244001AbiHWQEO (ORCPT ); Tue, 23 Aug 2022 12:04:14 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77100B7EF3; Tue, 23 Aug 2022 05:16:13 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id y187so10734380iof.0; Tue, 23 Aug 2022 05:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=qnlJbX7XO6SmNHU1bkg4hqymkER7fnKUTpqUuxqDC9Q=; b=YvkTldU56/KpYM/Q8lcjGj20r11xH73ScpVMfAJtufI/U10FglJMjHhHHXenufeP6H vwJF4VKfMLUOGuN/Ua9u/Pe2ldy5pEc0aOkanmbjmDEC0Fat0o9y72yF4o3KnaIuBvYX oox9tOffcxVjxvPm6v058yOrWSq9WziZzVJ89/og/LnYTqDPeN6o6irdH+dmnaTByX2G dVqo6nJhGl2YcKwW+g2mhGsbX8jcnWI3lTJuKlVci6IRshzUlRKxlIDtpx4HvS8Ggpj9 ZWFLZKmO3B5TzTaJvbCBk7J+zga3aOc9LO6sA7oFd6sJhZXjX6qmoUIwrbaNFo7ACftp yMNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=qnlJbX7XO6SmNHU1bkg4hqymkER7fnKUTpqUuxqDC9Q=; b=o5YvyFhPKJP8D1kkjs2JTT6qJCks4/w78wyY8r+STvfCMw8pdFKSQPhrHtCo/alr7B KGXAy0ux4eFZx87VgYrs6AzunA6OXXBCg0biBf5KGsmbx6fioZUYHE4OwxL6mfHvhmB+ 12WxaqA5hWH8vNCUM89i+vyN6lHslWJNNbSLiVOBF6Znax3rWmNO53zpTJ/IbXeF8S6B 0n7xOv7b4gGpmWmiYTO2vuBzvqOE1XaO27kBzCrnbIuHk0jHEAVyazHSXq+1YM7noOvM FHlP4smixv2u5MhPisLGuBrkp3c7wAxoGPVOUnLw/nNxpE9G1c+ttky7msaoy+xYS+z/ HYrw== X-Gm-Message-State: ACgBeo1alse8daDOX5GnzoVVLJ+I0hcouxLV8W0rrHa0mGJNMTMTaotK kvKa+hwwKH7tMRx3wFtOYEDxj0tOMSycxN2NCj8= X-Received: by 2002:a5d:8953:0:b0:67c:aa4c:2b79 with SMTP id b19-20020a5d8953000000b0067caa4c2b79mr11241778iot.172.1661256971635; Tue, 23 Aug 2022 05:16:11 -0700 (PDT) MIME-Version: 1.0 References: <20220805154231.31257-1-ojeda@kernel.org> <20220805154231.31257-21-ojeda@kernel.org> In-Reply-To: From: Miguel Ojeda Date: Tue, 23 Aug 2022 14:16:00 +0200 Message-ID: Subject: Re: [PATCH v9 20/27] scripts: add `rust_is_available.sh` To: Nick Desaulniers Cc: Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Alex Gaynor , Wedson Almeida Filho , Finn Behrens , Miguel Cano , Tiago Lam , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 23, 2022 at 2:12 PM Miguel Ojeda wrote: > > For instance, using the test header to print the libclang version, > this works for me: > > $ bindgen scripts/rust_is_available_bindgen_libclang.h > ... clang version 14.0.6 (https://github.com/llvm/llvm-project.git ... > > $ LIBCLANG_PATH=.../libclang-6.0.so.1 \ > bindgen scripts/rust_is_available_bindgen_libclang.h > ... clang version 6.0.0 (tags/RELEASE_600/final) ... By the way, a while ago I requested an easier way to check the libclang version directly from bindgen, and Emilio quickly added it (thanks a lot!): since `bindgen` 0.60.0 you can do: $ bindgen --version --verbose bindgen 0.60.0 Clang: clang version 14.0.6 (https://github.com/llvm/ ... Cheers, Miguel