We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/Oy
1 parent 9138052 commit ed54aa6Copy full SHA for ed54aa6
src/flags.rs
@@ -296,8 +296,11 @@ impl<'this> RustcCodegenFlags<'this> {
296
}
297
// https://learn.microsoft.com/en-us/cpp/build/reference/oy-frame-pointer-omission
298
if let Some(value) = self.force_frame_pointers {
299
- let cc_flag = if value { "/Oy-" } else { "/Oy" };
300
- push_if_supported(cc_flag.into());
+ // Flag is unsupported on 64-bit arches
+ if !target.arch.contains("64") {
301
+ let cc_flag = if value { "/Oy-" } else { "/Oy" };
302
+ push_if_supported(cc_flag.into());
303
+ }
304
305
306
0 commit comments