Skip to content

Commit 6ddde27

Browse files
committed
wip
1 parent 305b563 commit 6ddde27

5 files changed

Lines changed: 7 additions & 9 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zjit/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jit = { version = "0.1.0", path = "../jit" }
1414
[dev-dependencies]
1515
insta = "1.43.1"
1616
rand = "0.9"
17+
yjit = { path = "../yjit" }
1718

1819
# NOTE: Development builds select a set of these via configure.ac
1920
# For debugging, `make V=1` shows exact cargo invocation.

zjit/build.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,5 @@ fn main() {
2525
println!("cargo:rustc-link-lib={lib_name}");
2626
}
2727
}
28-
29-
// When doing a combo build, there is a copy of ZJIT symbols in libruby.a
30-
// and Cargo builds another copy for the test binary. Tell the linker to
31-
// not complaint about duplicate symbols. For some reason, darwin doesn't
32-
// suffer the same issue.
33-
if env::var("TARGET").unwrap().contains("linux") {
34-
println!("cargo:rustc-link-arg=-Wl,--allow-multiple-definition");
35-
}
3628
}
3729
}

zjit/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ mod gc;
3232
mod payload;
3333
mod json;
3434
mod ttycolors;
35+
36+
//
37+
#[cfg(test)]
38+
use yjit as _;

zjit/zjit.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ zjit-test-rr: libminiruby.a
133133
libminiruby.a: miniruby$(EXEEXT)
134134
$(ECHO) linking static-library $@
135135
$(Q) $(RM) $@
136-
$(Q) $(AR) $(ARFLAGS) $@ $(MINIOBJS) $(COMMONOBJS)
136+
$(Q) $(AR) $(ARFLAGS) $@ $(MINIOBJS) $(COMMONOBJS:$(RUST_LIBOBJ)=)
137137

138138
libminiruby: libminiruby.a
139139

0 commit comments

Comments
 (0)