mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Update IR
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -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