From d8db1d5f1a69446662014bca72fd24cb4be13b67 Mon Sep 17 00:00:00 2001 From: David Graham Date: Sun, 13 Aug 2017 10:04:33 -0600 Subject: [PATCH 1/3] Build ICU 59.1 with C++ 11 --- ext/charlock_holmes/extconf.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/charlock_holmes/extconf.rb b/ext/charlock_holmes/extconf.rb index 231ccde..e7feda6 100644 --- a/ext/charlock_holmes/extconf.rb +++ b/ext/charlock_holmes/extconf.rb @@ -50,6 +50,7 @@ def sys(cmd) have_library 'icuuc' or abort 'libicuuc missing' have_library 'icudata' or abort 'libicudata missing' +$CXXFLAGS << ' -std=c++11' $CFLAGS << ' -Wall -funroll-loops' $CFLAGS << ' -Wextra -O0 -ggdb3' if ENV['DEBUG'] From ab4076bf64477a4cff4e018fd0ac15227e9e02b8 Mon Sep 17 00:00:00 2001 From: David Graham Date: Sun, 13 Aug 2017 10:28:41 -0600 Subject: [PATCH 2/3] Build with a gcc version supporting -std=c++11 --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 05ed1b2..e273a08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,11 @@ -before_install: - - sudo apt-get update -qq - - sudo apt-get install libicu-dev +dist: trusty +addons: + apt: + packages: + - libicu-dev language: ruby rvm: + - 2.4 - 2.2 - 2.1 - 2.0.0 From 6fac2094b88b95b6e22b3ce0b4d01cf8743b4ddb Mon Sep 17 00:00:00 2001 From: David Graham Date: Sun, 13 Aug 2017 10:36:55 -0600 Subject: [PATCH 3/3] Remove Ruby 1.9.3 build It's missing the $CXXFLAGS global necessary to customize the compiler arguments and has been unsupported since February 2015. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e273a08..517bf43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ addons: language: ruby rvm: - 2.4 + - 2.3 - 2.2 - 2.1 - 2.0.0 - - 1.9.3