ext/rumale/tree/extconf.rb in rumale-tree-0.27.0 vs ext/rumale/tree/extconf.rb in rumale-tree-0.28.0
- old
+ new
@@ -1,9 +1,11 @@
# frozen_string_literal: true
require 'mkmf'
require 'numo/narray'
+abort 'libstdc++ is not found.' unless have_library('stdc++')
+
$LOAD_PATH.each do |lp|
if File.exist?(File.join(lp, 'numo/numo/narray.h'))
$INCFLAGS = "-I#{lp}/numo #{$INCFLAGS}"
break
end