Quellcode durchsuchen

Build the rust code with target-cpu=native

Ian Goldberg vor 1 Jahr
Ursprung
Commit
67ef5574d3
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      cxx/Makefile

+ 1 - 1
cxx/Makefile

@@ -8,7 +8,7 @@ libspir_cxx.a: spir.o ../target/release/libspiral_spir.a
 	ar r $@ $<
 
 ../target/release/libspiral_spir.a: $(wildcard ../src/*.rs)
-	cargo build --release
+	RUSTFLAGS="-C target-cpu=native" cargo build --release
 
 clean:
 	-rm -f libspir_cxx.a spir.o spir_test.o spir_test