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.
1 parent ac730b4 commit 83cca1bCopy full SHA for 83cca1b
src/pretty_clif.rs
@@ -251,10 +251,14 @@ pub(crate) fn write_clif_file<'tcx>(
251
)
252
.unwrap();
253
254
- writeln!(file, "test compile")?;
255
- writeln!(file, "set is_pic")?;
256
- writeln!(file, "set enable_simd")?;
257
- writeln!(file, "target {} nehalem", crate::target_triple(tcx.sess))?;
+ for flag in isa.flags().iter() {
+ writeln!(file, "set {}", flag)?;
+ }
+ write!(file, "target {}", isa.triple().architecture.to_string())?;
258
+ for isa_flag in isa.isa_flags().iter() {
259
+ write!(file, " {}", isa_flag)?;
260
261
+ writeln!(file, "\n")?;
262
writeln!(file)?;
263
file.write_all(clif.as_bytes())?;
264
Ok(())
0 commit comments