Sha256: 57d0e9aec48c61292a8ad2973fa7153dcf625dcbee6cfcc4e971065281d3773a

Contents?: true

Size: 541 Bytes

Versions: 4

Compression:

Stored size: 541 Bytes

Contents

require "mkmf-rice"

abort "Missing stdc++" unless have_library("stdc++")

$CXXFLAGS << " -std=c++11"

# needed for Linux pre-cxx11 ABI version
# $CXXFLAGS << " -D_GLIBCXX_USE_CXX11_ABI=0"

# silence ruby/intern.h warning
$CXXFLAGS << " -Wno-deprecated-register"

inc, lib = dir_config("torch")

inc ||= "/usr/local/include"
lib ||= "/usr/local/lib"

$INCFLAGS << " -I#{inc}"
$INCFLAGS << " -I#{inc}/torch/csrc/api/include"

$LDFLAGS << " -Wl,-rpath,#{lib}"
$LDFLAGS << " -L#{lib}"
$LDFLAGS << " -ltorch -lc10"

create_makefile("torch/ext")

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
torch-rb-0.1.4 ext/torch/extconf.rb
torch-rb-0.1.3 ext/torch/extconf.rb
torch-rb-0.1.2 ext/torch/extconf.rb
torch-rb-0.1.1 ext/torch/extconf.rb