lkml.org 
[lkml]   [2023]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 3/6] kbuild: rust_is_available: add check for `bindgen` invocation
    On Sat, Jan 14, 2023 at 10:44 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
    >
    > Ah, I see.
    >
    > How about this?
    >
    > bindgen_libclang_output=$(LC_ALL=C "$BINDGEN" $(dirname
    > $0)/rust_is_available_bindgen_libclang.h 2>&1 >/dev/null) \
    > || bindgen_libclang_code=$?
    >
    > You can get the error code of bindgen without toggling -e.

    As you prefer -- personally I tend to avoid assigning two variables in
    a single "statement" (like in C), but I am also happy avoiding to
    toggle `-e` since it is global state and therefore ugly too anyway.

    Cheers,
    Miguel

    \
     
     \ /
      Last update: 2023-03-26 23:41    [W:2.831 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site