ext/torch/extconf.rb in torch-rb-0.1.7 vs ext/torch/extconf.rb in torch-rb-0.1.8
- old
+ new
@@ -8,9 +8,12 @@
# $CXXFLAGS << " -D_GLIBCXX_USE_CXX11_ABI=0"
# silence ruby/intern.h warning
$CXXFLAGS << " -Wno-deprecated-register"
+# silence torch warnings
+$CXXFLAGS << " -Wno-shorten-64-to-32 -Wno-missing-noreturn"
+
inc, lib = dir_config("torch")
inc ||= "/usr/local/include"
lib ||= "/usr/local/lib"