commit 4f233ca9416419a6213e2c77214b47ef704c37ec Author: Noah Gibbs Date: Tue Jul 19 13:48:11 2016 -0700 * configure.in: Default CLang to use -inline-threshold=5000 diff --git a/ChangeLog b/ChangeLog index db8bf64..72f86dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Jul 20 05:46:17 2016 Noah Gibbs + + * configure.in: Default CLang to use -inline-threshold=5000 + Tue Jul 19 18:21:17 2016 Martin Duerst * lib/unicode_normalize/tables.rb: Remove diff --git a/configure.in b/configure.in index da0fc54..baa1e26 100644 --- a/configure.in +++ b/configure.in @@ -971,6 +971,11 @@ if test "$GCC" = yes; then fi ]) + # For CLang, use a higher -inline-threshold + for oflag in "-mllvm -inline-threshold=5000"; do + RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(optflags, $oflag)]) + done + # disable fast-math for oflag in -fno-fast-math; do RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(optflags, $oflag)])