Set CHECK_LEAKS in spec/default.mspec

Because of `.NOEXPORT:` in template/Makefile.in, variables in
common.mk will not be exported.
This commit is contained in:
Nobuyoshi Nakada 2024-01-16 20:29:06 +09:00
parent 9f02680015
commit 01459f1644
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
2 changed files with 4 additions and 3 deletions

View file

@ -43,9 +43,6 @@ RUBYLIB = $(PATH_SEPARATOR)
RUBYOPT = -
RUN_OPTS = --disable-gems
# Enabld leakcheckers by ruby/mspec
CHECK_LEAKS = true
# GITPULLOPTIONS = --no-tags
PRISM_SRCDIR = $(srcdir)/prism

View file

@ -3,6 +3,10 @@ $VERBOSE = false
if (opt = ENV["RUBYOPT"]) and (opt = opt.dup).sub!(/(?:\A|\s)-w(?=\z|\s)/, '')
ENV["RUBYOPT"] = opt
end
# Enabld leakcheckers by ruby/mspec
ENV["CHECK_LEAKS"] ||= "true"
require "./rbconfig" unless defined?(RbConfig)
require_relative "../tool/test-coverage" if ENV.key?("COVERAGE")
load File.dirname(__FILE__) + '/ruby/default.mspec'