require 'mkmf'
$CFLAGS << ' -Wall -Werror'
if ENV['DEBUG'] == 'true'
  $CFLAGS << ' -fbounds-check'
end
$warnflags.gsub!(/-Wdeclaration-after-statement/, "")
create_makefile("liquid_c")

require 'mkmf'
$CFLAGS << ' -Wall -Werror'
compiler = RbConfig::MAKEFILE_CONFIG['CC']
if ENV['DEBUG'] == 'true' && compiler =~ /gcc|g\+\+/
  $CFLAGS << ' -fbounds-check'
end
$warnflags.gsub!(/-Wdeclaration-after-statement/, "")
create_makefile("liquid_c")

Fix running tests on clang
Fix running tests on clang
