Explorar o código

Build the rust code with target-cpu=native

Ian Goldberg hai 1 ano
pai
achega
67ef5574d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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