Skip to content

Commit

Permalink
Do not always enable avx2
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Sep 14, 2023
1 parent 5f5f504 commit bbf0706
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol, target_info: Arc<
// TODO(antoyo): only set on x86 platforms.
context.add_command_line_option("-masm=intel");

let features = ["64", "avxvnni", "bmi", "sse2", "avx", "avx2", "sha", "fma", "fma4", "gfni", "f16c", "aes", "bmi2", "pclmul", "rtm",
// TODO: instead of setting the features manually, set the correct -march flag.
let features = ["64", "avxvnni", "bmi", "sse2", "avx", /*"avx2",*/ "sha", "fma", "fma4", "gfni", "f16c", "aes", "bmi2", "pclmul", "rtm",
"vaes", "vpclmulqdq", "xsavec",
];

Expand Down

0 comments on commit bbf0706

Please sign in to comment.