diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-15 07:04:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-15 07:04:48 +0000 |
commit | 0f4d856d4ddd82638f2ee525ddb8fb4fd5dc1a17 (patch) | |
tree | 33ca93613496083bf996c4e5e433323278f14f56 /common.mk | |
parent | 895954ef91c974ceff829e0d06132853e87377ea (diff) | |
download | ruby-0f4d856d4ddd82638f2ee525ddb8fb4fd5dc1a17.tar.gz |
define RUBY_DEBUG_ENV only for main.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -938,6 +938,12 @@ $(PRELUDE_C): $(COMPILE_PRELUDE) \ $(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb -I$(srcdir) -c -o $@ \ $(srcdir)/template/prelude.c.tmpl golf_prelude.rb +MAINCPPFLAGS = $(ENABLE_DEBUG_ENV:yes=-DRUBY_DEBUG_ENV=1) + +$(MAINOBJ): $(srcdir)/$(MAINSRC) + $(ECHO) compiling $(srcdir)/$(MAINSRC) + $(Q) $(CC) $(MAINCPPFLAGS) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$(srcdir)/$(MAINSRC) + {$(VPATH)}probes.dmyh: {$(srcdir)}probes.d $(srcdir)/tool/gen_dummy_probes.rb probes.dmyh: |