aboutsummaryrefslogtreecommitdiffstats
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-26 20:48:24 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-26 20:49:33 +0900
commit1c4cf4348030e03ac995d50170c0ad6fec0af46c (patch)
tree2263bc256c8b661ccca1008b5709ad2c1fc76858 /win32/Makefile.sub
parent29877d944e46566e92062b28b8c79bb23061063b (diff)
downloadruby-1c4cf4348030e03ac995d50170c0ad6fec0af46c.tar.gz
[MSWin] Replace -Zi in DEBUGFLAGS with -Z7 to suppress warnings
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub5
1 files changed, 3 insertions, 2 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 64a166f150..139f1d8fa3 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -338,7 +338,8 @@ MJIT_OPTFLAGS = -DMJIT_HEADER $(CFLAGS) $(XCFLAGS) $(CPPFLAGS)
!endif
!ifndef MJIT_DEBUGFLAGS
# TODO: Make this work... Another header for debug build needs to be installed first.
-MJIT_DEBUGFLAGS = $(DEBUGFLAGS)
+MJIT_DEBUGFLAGS = $(empty) $(DEBUGFLAGS) $(empty)
+MJIT_DEBUGFLAGS = $(MJIT_DEBUGFLAGS: -Zi = -Z7 )
!endif
!ifndef MJIT_LDSHARED
MJIT_LDSHARED = $(MJIT_CC) -LD
@@ -1332,7 +1333,7 @@ clean-local::
# for --jit-debug as well.
$(TIMESTAMPDIR)/$(MJIT_PRECOMPILED_HEADER_NAME:.pch=).time: probes.h vm.$(OBJEXT)
$(ECHO) building $(@F:.time=.pch)
- $(Q) $(CC) -DMJIT_HEADER $(CFLAGS) $(XCFLAGS:-DRUBY_EXPORT =) -URUBY_EXPORT $(CPPFLAGS) $(srcdir)/vm.c -c -Yc \
+ $(Q) $(CC) -DMJIT_HEADER $(CFLAGS: -Zi = -Z7 ) $(XCFLAGS:-DRUBY_EXPORT =) -URUBY_EXPORT $(CPPFLAGS) $(srcdir)/vm.c -c -Yc \
$(COUTFLAG)$(@F:.time=.)$(OBJEXT) -Fd$(@F:.time=.pdb) -Fp$(@F:.time=.pch).new -Z7
$(Q) $(IFCHANGE) "--timestamp=$@" $(@F:.time=.pch) $(@F:.time=.pch).new