[前][次][番号順一覧][スレッド一覧]

ruby-changes:69951

From: Nobuyoshi <ko1@a...>
Date: Fri, 26 Nov 2021 20:50:04 +0900 (JST)
Subject: [ruby-changes:69951] 1c4cf43480 (master): [MSWin] Replace -Zi in DEBUGFLAGS with -Z7 to suppress warnings

https://git.ruby-lang.org/ruby.git/commit/?id=1c4cf43480

From 1c4cf4348030e03ac995d50170c0ad6fec0af46c Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 26 Nov 2021 20:48:24 +0900
Subject: [MSWin] Replace -Zi in DEBUGFLAGS with -Z7 to suppress warnings

---
 win32/Makefile.sub | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 64a166f1506..139f1d8fa31 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -338,7 +338,8 @@ MJIT_OPTFLAGS = -DMJIT_HEADER $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L338
 !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:: https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L1333
 # 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
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]