convert ehcont-guard to an unstable option
This commit is contained in:
parent
d582f1092b
commit
9429d68842
4 changed files with 6 additions and 5 deletions
|
@ -350,8 +350,9 @@ pub unsafe fn create_module<'ll>(
|
|||
1,
|
||||
);
|
||||
}
|
||||
|
||||
// Set module flag to enable Windows EHCont Guard (/guard:ehcont).
|
||||
if sess.opts.cg.ehcont_guard {
|
||||
if sess.opts.unstable_opts.ehcont_guard {
|
||||
llvm::LLVMRustAddModuleFlag(
|
||||
llmod,
|
||||
llvm::LLVMModFlagBehavior::Warning,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue