Skip to content

Commit 57c6eb7

Browse files
committed
Test multithreading support in lazy-jit
1 parent 5c78324 commit 57c6eb7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

example/std_example.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ fn main() {
1515
let stderr = ::std::io::stderr();
1616
let mut stderr = stderr.lock();
1717

18-
// FIXME support lazy jit when multi threading
19-
#[cfg(not(lazy_jit))]
2018
std::thread::spawn(move || {
2119
println!("Hello from another thread!");
2220
});

scripts/tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function base_sysroot_tests() {
4646
$MY_RUSTC -Cllvm-args=mode=jit -Cprefer-dynamic example/std_example.rs --target "$HOST_TRIPLE"
4747

4848
echo "[JIT-lazy] std_example"
49-
$MY_RUSTC -Cllvm-args=mode=jit-lazy -Cprefer-dynamic example/std_example.rs --cfg lazy_jit --target "$HOST_TRIPLE"
49+
$MY_RUSTC -Cllvm-args=mode=jit-lazy -Cprefer-dynamic example/std_example.rs --target "$HOST_TRIPLE"
5050
else
5151
echo "[JIT] std_example (skipped)"
5252
fi

0 commit comments

Comments
 (0)