ext/fasttext/extconf.rb in fasttext-0.1.2 vs ext/fasttext/extconf.rb in fasttext-0.1.3

- old
+ new

@@ -1,10 +1,9 @@ require "mkmf-rice" -abort "Missing stdc++" unless have_library("stdc++") - # TODO use -std=c++14 when available -$CXXFLAGS << " -pthread -std=c++11 -funroll-loops -O3 -march=native" +# -pthread and -O3 set by default +$CXXFLAGS << " -std=c++11 -funroll-loops " << with_config("optflags", "-march=native") ext = File.expand_path(".", __dir__) fasttext = File.expand_path("../../vendor/fastText/src", __dir__) $srcs = Dir["{#{ext},#{fasttext}}/*.{cc,cpp}"]