Skip to content

Commit 08f6b86

Browse files
peterzhu2118matzbot
authored andcommitted
[ruby/mmtk] Set MMTK_DEBUG in C compiler for debug builds
ruby/mmtk@12a3904b04
1 parent a024dca commit 08f6b86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gc/mmtk/extconf.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
MMTK_BUILD = debug
1616
LIBMMTK_RUBY = libmmtk_ruby.#$LIBEXT
1717
RUSTSRCS = #{rustsrcs.join(" \\\n\t ")}
18+
19+
ifeq ($(MMTK_BUILD), debug)
20+
CPPFLAGS += -DMMTK_DEBUG
21+
endif
1822
MAKEFILE
1923
]
2024
end

0 commit comments

Comments
 (0)