Skip to content

Commit 01459f1

Browse files
committed
Set CHECK_LEAKS in spec/default.mspec
Because of `.NOEXPORT:` in template/Makefile.in, variables in common.mk will not be exported.
1 parent 9f02680 commit 01459f1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

common.mk

-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ RUBYLIB = $(PATH_SEPARATOR)
4343
RUBYOPT = -
4444
RUN_OPTS = --disable-gems
4545

46-
# Enabld leakcheckers by ruby/mspec
47-
CHECK_LEAKS = true
48-
4946
# GITPULLOPTIONS = --no-tags
5047

5148
PRISM_SRCDIR = $(srcdir)/prism

spec/default.mspec

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

0 commit comments

Comments
 (0)