ruby-changes:64705
From: Nobuyoshi <ko1@a...>
Date: Sat, 2 Jan 2021 09:49:04 +0900 (JST)
Subject: [ruby-changes:64705] 5aa28d9d6d (master): Check if x86intrin.h is available not only existing
https://git.ruby-lang.org/ruby.git/commit/?id=5aa28d9d6d From 5aa28d9d6d8d070a4f29905f3a2c76b0f000ed44 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 2 Jan 2021 09:48:42 +0900 Subject: Check if x86intrin.h is available not only existing diff --git a/ext/bigdecimal/extconf.rb b/ext/bigdecimal/extconf.rb index ab856b8..4ad5172 100644 --- a/ext/bigdecimal/extconf.rb +++ b/ext/bigdecimal/extconf.rb @@ -46,7 +46,9 @@ have_builtin_func("__builtin_clz", "__builtin_clz(0)") https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/extconf.rb#L46 have_builtin_func("__builtin_clzl", "__builtin_clzl(0)") have_header("stdbool.h") -have_header("x86intrin.h") +if have_func("_lzcnt_u64", "x86intrin.h") # check availability + $defs << "-DHAVE_X86INTRIN_H" +end have_func("labs", "stdlib.h") have_func("llabs", "stdlib.h") -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/