File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -280,14 +280,17 @@ fn build_isa(sess: &Session, backend_config: &BackendConfig) -> Box<dyn isa::Tar
280
280
}
281
281
}
282
282
283
- if let target_lexicon:: Architecture :: Aarch64 ( _) | target_lexicon:: Architecture :: X86_64 =
284
- target_triple. architecture
283
+ if let target_lexicon:: Architecture :: Aarch64 ( _)
284
+ | target_lexicon:: Architecture :: Riscv64 ( _)
285
+ | target_lexicon:: Architecture :: X86_64 = target_triple. architecture
285
286
{
286
- // Windows depends on stack probes to grow the committed part of the stack
287
+ // Windows depends on stack probes to grow the committed part of the stack.
288
+ // On other platforms it helps prevents stack smashing.
287
289
flags_builder. enable ( "enable_probestack" ) . unwrap ( ) ;
288
290
flags_builder. set ( "probestack_strategy" , "inline" ) . unwrap ( ) ;
289
291
} else {
290
- // __cranelift_probestack is not provided and inline stack probes are only supported on AArch64 and x86_64
292
+ // __cranelift_probestack is not provided and inline stack probes are only supported on
293
+ // AArch64, Riscv64 and x86_64.
291
294
flags_builder. set ( "enable_probestack" , "false" ) . unwrap ( ) ;
292
295
}
293
296
You can’t perform that action at this time.
0 commit comments