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

ruby-changes:72025

From: Jakub <ko1@a...>
Date: Tue, 31 May 2022 07:31:08 +0900 (JST)
Subject: [ruby-changes:72025] 31bd79dda3 (master): Add yjit.o to DTRACE_DEPENDENT_OBJS

https://git.ruby-lang.org/ruby.git/commit/?id=31bd79dda3

From 31bd79dda3d26956976e68ff1c2f8c376c7e9ea5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Kul=C3=ADk?= <Kulikjak@g...>
Date: Tue, 31 May 2022 00:30:57 +0200
Subject: Add yjit.o to DTRACE_DEPENDENT_OBJS

In principle, we have a DTrace probe in yjit.c, so yjit.o should be
in DTRACE_DEPENDENT_OBJS for DTRACE_REBUILD=yes builds. This commit
adds to the list.

In practice DTRACE_REBUILD=yes implies the system has a Solaris-like
DTrace and YJIT doesn't support those systems. YJIT_OBJ expands to
nothing, and yjit.c isn't compiled.

I tested on OmniOS v11 r151034m with:

    $ ../src/configure --with-out-ext=psych MAKE=gmake AR=ar debugflags=-g
    $ gmake -j

It builds before and after this change.

[Bug #18480]
---
 template/Makefile.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/template/Makefile.in b/template/Makefile.in
index e55f466efc..a8581260b9 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -200,7 +200,8 @@ DTRACE_DEPENDENT_OBJS = array.$(OBJEXT) \ https://github.com/ruby/ruby/blob/trunk/template/Makefile.in#L200
 			parse.$(OBJEXT) \
 			string.$(OBJEXT) \
 			symbol.$(OBJEXT) \
-			vm.$(OBJEXT)
+			vm.$(OBJEXT) \
+			$(YJIT_OBJ)
 
 THREAD_MODEL  = @THREAD_MODEL@
 
-- 
cgit v1.2.1


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

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