Sha256: dcace2101092d322a7078831d2c5d6342f2721c88c27f44c5f56be9db58c5f23
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 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/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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fasttext-0.2.3 | ext/fasttext/extconf.rb |