ext/attribute_builder/extconf.rb in faml-0.7.2 vs ext/attribute_builder/extconf.rb in faml-0.7.3
- old
+ new
@@ -1,9 +1,13 @@
# frozen-string-literal: true
require 'mkmf'
$CFLAGS << ' -Wall -W'
-$CXXFLAGS << ' -Wall -W'
+if $CXXFLAGS
+ # $CXXFLAGS might be undefined
+ # https://github.com/ruby/ruby/pull/492
+ $CXXFLAGS << ' -Wall -W'
+end
houdini_dir = File.expand_path('../../vendor/houdini', __dir__)
$INCFLAGS << " -I#{houdini_dir}"
$srcs = %w[attribute_builder.cc]
%w[