@@ -475,9 +475,7 @@ impl<'a> Linker for GccLinker<'a> {
475
475
self . cmd . arg ( "__llvm_profile_runtime" ) ;
476
476
}
477
477
478
- fn control_flow_guard ( & mut self ) {
479
- self . sess . warn ( "Windows Control Flow Guard is not supported by this linker." ) ;
480
- }
478
+ fn control_flow_guard ( & mut self ) { }
481
479
482
480
fn debuginfo ( & mut self , strip : Strip ) {
483
481
match strip {
@@ -959,9 +957,7 @@ impl<'a> Linker for EmLinker<'a> {
959
957
// noop, but maybe we need something like the gnu linker?
960
958
}
961
959
962
- fn control_flow_guard ( & mut self ) {
963
- self . sess . warn ( "Windows Control Flow Guard is not supported by this linker." ) ;
964
- }
960
+ fn control_flow_guard ( & mut self ) { }
965
961
966
962
fn debuginfo ( & mut self , _strip : Strip ) {
967
963
// Preserve names or generate source maps depending on debug info
@@ -1163,9 +1159,7 @@ impl<'a> Linker for WasmLd<'a> {
1163
1159
}
1164
1160
}
1165
1161
1166
- fn control_flow_guard ( & mut self ) {
1167
- self . sess . warn ( "Windows Control Flow Guard is not supported by this linker." ) ;
1168
- }
1162
+ fn control_flow_guard ( & mut self ) { }
1169
1163
1170
1164
fn no_crt_objects ( & mut self ) { }
1171
1165
@@ -1330,9 +1324,7 @@ impl<'a> Linker for PtxLinker<'a> {
1330
1324
1331
1325
fn no_default_libraries ( & mut self ) { }
1332
1326
1333
- fn control_flow_guard ( & mut self ) {
1334
- self . sess . warn ( "Windows Control Flow Guard is not supported by this linker." ) ;
1335
- }
1327
+ fn control_flow_guard ( & mut self ) { }
1336
1328
1337
1329
fn export_symbols ( & mut self , _tmpdir : & Path , _crate_type : CrateType ) { }
1338
1330
0 commit comments