about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorAndrew Paverd <andrew.paverd@microsoft.com>2020-06-16 17:44:03 +0100
committerAndrew Paverd <andrew.paverd@microsoft.com>2020-06-16 17:44:03 +0100
commit83e6c0e98657d8df3dd4f45fa22baadcac986402 (patch)
treeabc701f2a87883d84a3b6e97f87abc71f45972ac /src/bootstrap
parentc8a9c340de32cb70c8bad8af1a4474f805c5a969 (diff)
Update CFGuard syntax
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/builder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index ea5300bdfc0..087b0da74e5 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -1176,7 +1176,7 @@ impl<'a> Builder<'a> {
             );
         }
 
-        // If Control Flow Guard is enabled, pass the `control_flow_guard=checks` flag to rustc
+        // If Control Flow Guard is enabled, pass the `control-flow-guard` flag to rustc
         // when compiling the standard library, since this might be linked into the final outputs
         // produced by rustc. Since this mitigation is only available on Windows, only enable it
         // for the standard library in case the compiler is run on a non-Windows platform.
@@ -1187,7 +1187,7 @@ impl<'a> Builder<'a> {
             && self.config.control_flow_guard
             && compiler.stage >= 1
         {
-            rustflags.arg("-Zcontrol_flow_guard=checks");
+            rustflags.arg("-Zcontrol-flow-guard");
         }
 
         // For `cargo doc` invocations, make rustdoc print the Rust version into the docs