Browse Source

Build the rust code with target-cpu=native

Ian Goldberg 1 year ago
parent
commit
67ef5574d3
1 changed files with 1 additions and 1 deletions
  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