Update IR

This commit is contained in:
Jeehoon Kang
2020-04-09 13:04:23 +09:00
parent cef3fb7650
commit 6edb4665c0
10 changed files with 196 additions and 39 deletions

8
Jenkinsfile vendored
View File

@@ -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"
}
}
}