[前][次][番号順一覧][スレッド一覧]

ruby-changes:65064

From: Nobuyoshi <ko1@a...>
Date: Wed, 27 Jan 2021 15:01:06 +0900 (JST)
Subject: [ruby-changes:65064] 0d5a4d6d49 (master): Disable fast-math

https://git.ruby-lang.org/ruby.git/commit/?id=0d5a4d6d49

From 0d5a4d6d4973af3dfbdb19c965efe6c86dbdd8ad Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 27 Jan 2021 14:50:27 +0900
Subject: Disable fast-math

As `RUBY_TRY_CFLAGS` restores `CFLAGS`, appending to the variable
in its block has no effect.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 285a2f9..371cbf3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -813,7 +813,7 @@ AS_IF([test "$GCC" = yes], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L813
 
     # disable fast-math
     for oflag in -fno-fast-math; do
-	RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(CFLAGS, $oflag)])
+	RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(optflags, $oflag)])
     done
     for oflag in -fexcess-precision=standard -fp-model\ precise; do
 	RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(XCFLAGS, $oflag)])
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]