Re: [PATCH RFC 2/3] rust: implement a test balloon via the "varint" subsystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2025-09-04 at 14:26:44, Patrick Steinhardt wrote:
> diff --git a/meson.build b/meson.build
> index 1c0e98bbc14..b52a68b0bb6 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -522,7 +522,6 @@ libgit_sources = [
>    'usage.c',
>    'userdiff.c',
>    'utf8.c',
> -  'varint.c',
>    'version.c',
>    'versioncmp.c',
>    'walker.c',
> @@ -1713,6 +1712,10 @@ rust_option = get_option('rust').disable_auto_if(not rust_available)
>  
>  if rust_option.allowed() and meson.version().version_compare('>=1.9.0')
>    subdir('src')
> +else
> +  libgit_sources += [
> +    'varint.c',
> +  ]
>  endif

Can we also add a #define constant when building?  For instance, if I'm
writing interop code in Rust, I'll need to be able to do something like
this:

    int do_foobar()
    {
    #ifdef RUST
      /* Call some code */
    #else
      die(_("interoperability not supported"));
    #endif
    }
-- 
brian m. carlson (they/them)
Toronto, Ontario, CA

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux