ext/torch/extconf.rb in torch-rb-0.10.2 vs ext/torch/extconf.rb in torch-rb-0.11.0

- old
+ new

@@ -5,24 +5,12 @@ # change to 0 for Linux pre-cxx11 ABI version $CXXFLAGS += " -D_GLIBCXX_USE_CXX11_ABI=1" apple_clang = RbConfig::CONFIG["CC_VERSION_MESSAGE"] =~ /apple clang/i -# check omp first -if have_library("omp") || have_library("gomp") - $CXXFLAGS += " -Xclang" if apple_clang - $CXXFLAGS += " -fopenmp" -end - if apple_clang - # silence rice warnings - $CXXFLAGS += " -Wno-deprecated-declarations" - - # silence ruby/intern.h warning - $CXXFLAGS += " -Wno-deprecated-register" - # silence torch warnings - $CXXFLAGS += " -Wno-shorten-64-to-32 -Wno-missing-noreturn" + $CXXFLAGS += " -Wno-deprecated-declarations" else # silence rice warnings $CXXFLAGS += " -Wno-noexcept-type" # silence torch warnings