mirror of
https://github.com/kmc7468/cs420.git
synced 2026-11-04 00:00:29 +09:00
Update IR
This commit is contained in:
1 parent
cef3fb7650
commit
6edb4665c0
10 files changed
+196
-39
No files matched your search
Vendored
+6
-2
@@ -35,8 +35,12 @@ pipeline {
|
||||
stage('Test') {
|
||||
steps {
|
||||
setupRust()
|
||||
sh "cargo test"
|
||||
sh "cargo test --release"
|
||||
// When `cargo test` runs, the function `it_works()` is called in a new thread.
|
||||
// The stack size of a new thread is `2 MiB` on Linux, and this small stack size
|
||||
// can cause `stack-overflow` error when testing stack-intensive code.
|
||||
// For this reason, we need to increase the default size of stack to `4 MiB`.
|
||||
sh "RUST_MIN_STACK=4194304 cargo test"
|
||||
sh "RUST_MIN_STACK=4194304 cargo test --release"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user