diff options
| author | Antoni Boucher <bouanto@zoho.com> | 2022-06-26 11:00:04 -0400 |
|---|---|---|
| committer | Antoni Boucher <bouanto@zoho.com> | 2022-07-06 15:24:53 -0400 |
| commit | 6205f1a0c590381bef30a6faf6bd55ba13d9c05a (patch) | |
| tree | dd669914149e5ad4e1a37972e3079db1ebed4227 | |
| parent | 1c4ca283df4e918ce2fdba1c5826c957a8daad3d (diff) | |
| download | rust-6205f1a0c590381bef30a6faf6bd55ba13d9c05a.tar.gz rust-6205f1a0c590381bef30a6faf6bd55ba13d9c05a.zip | |
Reenable target flags
| -rw-r--r-- | src/base.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base.rs b/src/base.rs index 2f77978df1e..84d48d8591a 100644 --- a/src/base.rs +++ b/src/base.rs @@ -79,7 +79,7 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_ // TODO(antoyo): only set on x86 platforms. context.add_command_line_option("-masm=intel"); // TODO(antoyo): only add the following cli argument if the feature is supported. - /*context.add_command_line_option("-msse2"); + context.add_command_line_option("-msse2"); context.add_command_line_option("-mavx2"); // FIXME(antoyo): the following causes an illegal instruction on vmovdqu64 in std_example on my CPU. // Only add if the CPU supports it. @@ -112,7 +112,7 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_ context.add_command_line_option("-mavx512vbmi"); context.add_command_line_option("-mavx512ifma"); context.add_command_line_option("-mavx512cd"); - }*/ + } for arg in &tcx.sess.opts.cg.llvm_args { context.add_command_line_option(arg); |
