ext/ffi/hydrogen/Rakefile in ffi-hydrogen-0.1.4 vs ext/ffi/hydrogen/Rakefile in ffi-hydrogen-0.1.5

- old
+ new

@@ -13,10 +13,12 @@ " -Wbad-function-cast -Wcast-align -Wcast-qual -Wfloat-equal"\ " -Wmissing-declarations -Wnested-externs -Wno-unknown-pragmas"\ " -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-enum"\ " -Wno-type-limits" - cpuflag = if RUBY_PLATFORM =~ /arm64/ && RUBY_PLATFORM =~ /darwin/ + rbconfig = RbConfig::CONFIG + + cpuflag = if rbconfig["host_cpu"] =~ /arm64/ && rbconfig["host_os"] =~ /darwin/ "-mcpu=apple-m1" else "-march=native" end