Sha256: b795790274067414b15411c77fa61dc126e77ca884e5fe77e6849431ec48dca4
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
require "mkmf-rice" # -march=native not supported with ARM Mac default_optflags = RbConfig::CONFIG["host_os"] =~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i ? "" : "-march=native" # -pthread and -O3 set by default $CXXFLAGS << " -std=c++17 $(optflags) -funroll-loops " << with_config("optflags", default_optflags) ext = File.expand_path(".", __dir__) fasttext = File.expand_path("../../vendor/fastText/src", __dir__) $srcs = Dir["{#{ext},#{fasttext}}/*.{cc,cpp}"] $INCFLAGS << " -I#{fasttext}" $VPATH << fasttext create_makefile("fasttext/ext")
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fasttext-0.4.0 | ext/fasttext/extconf.rb |
fasttext-0.3.0 | ext/fasttext/extconf.rb |
fasttext-0.2.4 | ext/fasttext/extconf.rb |