Sha256: eabe1025137f37a2e5dbe5f475641991c08d526539eb84154ab4273bef721632

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

require "mkmf-rice"

# TODO use -std=c++14 when available
# -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}"]
$INCFLAGS << " -I#{fasttext}"
$VPATH << fasttext

create_makefile("fasttext/ext")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fasttext-0.1.3 ext/fasttext/extconf.rb