ext/torch/extconf.rb in torch-rb-0.6.0 vs ext/torch/extconf.rb in torch-rb-0.7.0
- old
+ new
@@ -1,9 +1,7 @@
require "mkmf-rice"
-abort "Missing stdc++" unless have_library("stdc++")
-
-$CXXFLAGS += " -std=c++14"
+$CXXFLAGS += " -std=c++17 $(optflags)"
# 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