Increase default stack size of parse_sv
This commit is contained in:
parent
400140fae0
commit
b1c3f41dea
@ -55,6 +55,10 @@ fn main() {
|
|||||||
defines.insert(ident, Some(define));
|
defines.insert(ident, Some(define));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let builder = std::thread::Builder::new().stack_size(20 * 1024 * 1024);
|
||||||
|
|
||||||
|
let child = builder
|
||||||
|
.spawn(move || {
|
||||||
let mut exit = 0;
|
let mut exit = 0;
|
||||||
for path in &opt.files {
|
for path in &opt.files {
|
||||||
if opt.pp {
|
if opt.pp {
|
||||||
@ -97,6 +101,10 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
process::exit(exit);
|
process::exit(exit);
|
||||||
|
})
|
||||||
|
.expect("thread spawn failure");
|
||||||
|
|
||||||
|
let _ = child.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
static CHAR_CR: u8 = 0x0d;
|
static CHAR_CR: u8 = 0x0d;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user