Sha256: 46349416017dc49c7f21eed901370a03e1481f34eab2df091d61a88a356b4084

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

require "mkmf"
require "rb_sys/mkmf"

create_rust_makefile("fast_mmaped_file_rs") do |r|
  r.auto_install_rust_toolchain = false

  if enable_config('fail-on-warning')
    r.extra_rustflags = ["-Dwarnings"]
  end

  if enable_config('debug')
    r.profile = :dev
  end

  if enable_config('address-sanitizer')
    r.extra_rustflags = ["-Zsanitizer=address"]
  end

  # `rb_sys/mkmf` passes all arguments after `--` directly to `cargo rustc`.
  # We use this awful hack to keep compatibility with existing flags used by
  # the C implementation.
  trimmed_argv = ARGV.take_while { |arg| arg != "--" }
  ARGV = trimmed_argv
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prometheus-client-mmap-0.20.2 ext/fast_mmaped_file_rs/extconf.rb