소스 검색

Build the rust code with target-cpu=native

Ian Goldberg 2 년 전
부모
커밋
67ef5574d3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 $@ $<
 	ar r $@ $<
 
 
 ../target/release/libspiral_spir.a: $(wildcard ../src/*.rs)
 ../target/release/libspiral_spir.a: $(wildcard ../src/*.rs)
-	cargo build --release
+	RUSTFLAGS="-C target-cpu=native" cargo build --release
 
 
 clean:
 clean:
 	-rm -f libspir_cxx.a spir.o spir_test.o spir_test
 	-rm -f libspir_cxx.a spir.o spir_test.o spir_test