Skip to content

Commit

Permalink
Don't use -march=native and -mtune=native when compiling (Chia-Networ…
Browse files Browse the repository at this point in the history
…k#34)

This might result in code not running on other CPUs than the host CPU.
Also fails to cross-compile for ARM.
  • Loading branch information
codablock authored and mariano54 committed Sep 28, 2018
1 parent c6dad5c commit 297e63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ENDIF()
set(STBIN "OFF" CACHE STRING "")

set(FP_METHD "INTEG;INTEG;INTEG;MONTY;LOWER;SLIDE" CACHE STRING "")
set(COMP "-O3 -funroll-loops -fomit-frame-pointer -march=native -mtune=native" CACHE STRING "")
set(COMP "-O3 -funroll-loops -fomit-frame-pointer" CACHE STRING "")
set(FP_PMERS "off" CACHE STRING "")
set(FPX_METHD "INTEG;INTEG;LAZYR" CACHE STRING "")
set(EP_PLAIN "off" CACHE STRING "")
Expand Down

0 comments on commit 297e63e

Please sign in to comment.