diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-07-09 16:00:30 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-07-09 16:00:37 +0200 |
commit | 531656edd95d8412e33f594f10fabf316f7d9a94 (patch) | |
tree | 8351e7f37c23b8fbc7a88e4e87cd050e8f7c977e | |
parent | fix incorrect arch in readme (diff) | |
parent | Interpret x86_64 as x86-64 for architecture (diff) | |
download | monero-531656edd95d8412e33f594f10fabf316f7d9a94.tar.xz |
Merge pull request #332
8623492 Interpret x86_64 as x86-64 for architecture (moneromooo-monero)
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 805b42a79..b52ea8f41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -211,7 +211,11 @@ else() if(ARCH STREQUAL "default") set(ARCH_FLAG "") else() - set(ARCH_FLAG "-march=${ARCH}") + if(ARCH STREQUAL "x86_64") + set(ARCH_FLAG "-march=x86-64") + else() + set(ARCH_FLAG "-march=${ARCH}") + endif() endif() set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-error=sign-compare -Wno-error=strict-aliasing -Wno-error=type-limits -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized") if(CMAKE_C_COMPILER_ID STREQUAL "Clang") |