ruby-changes:71918
From: Nobuyoshi <ko1@a...>
Date: Sun, 22 May 2022 15:29:21 +0900 (JST)
Subject: [ruby-changes:71918] e79983a448 (master): Check if thread-local storage is supported on macOS
https://git.ruby-lang.org/ruby.git/commit/?id=e79983a448 From e79983a44885db24b82f25e6fc29def347dd1a9f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 22 May 2022 15:26:42 +0900 Subject: Check if thread-local storage is supported on macOS We need thread-local storage on Clang, since 319afed20fba. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 9e5db655e1..7a820dabd6 100644 --- a/configure.ac +++ b/configure.ac @@ -340,16 +340,16 @@ AS_CASE(["$host_os:$build_os"], https://github.com/ruby/ruby/blob/trunk/configure.ac#L340 AS_CASE(["$target_os"], [darwin*], [ AC_MSG_CHECKING(if minimum required OS X version is supported) - AC_PREPROC_IFELSE([AC_LANG_SOURCE([[@%:@include <AvailabilityMacros.h> + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[@%:@include <AvailabilityMacros.h> @%:@if MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_5 @%:@error pre OS X 10.5 [!<===== pre OS X 10.5 =====>] @%:@endif + int __thread conftest; ]])], - [macosx_min_required=yes], + [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) AC_MSG_ERROR([Unsupported OS X version is required])]) - AC_MSG_RESULT(${macosx_min_required}) ]) RUBY_MINGW32 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/