mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #332
8623492
Interpret x86_64 as x86-64 for architecture (moneromooo-monero)
This commit is contained in:
commit
531656edd9
1 changed files with 5 additions and 1 deletions
|
@ -210,9 +210,13 @@ else()
|
||||||
set(ARCH native CACHE STRING "CPU to build for: -march value or default")
|
set(ARCH native CACHE STRING "CPU to build for: -march value or default")
|
||||||
if(ARCH STREQUAL "default")
|
if(ARCH STREQUAL "default")
|
||||||
set(ARCH_FLAG "")
|
set(ARCH_FLAG "")
|
||||||
|
else()
|
||||||
|
if(ARCH STREQUAL "x86_64")
|
||||||
|
set(ARCH_FLAG "-march=x86-64")
|
||||||
else()
|
else()
|
||||||
set(ARCH_FLAG "-march=${ARCH}")
|
set(ARCH_FLAG "-march=${ARCH}")
|
||||||
endif()
|
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")
|
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")
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||||
set(WARNINGS "${WARNINGS} -Wno-deprecated-register")
|
set(WARNINGS "${WARNINGS} -Wno-deprecated-register")
|
||||||
|
|
Loading…
Reference in a new issue