mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
NetBSD support
This commit is contained in:
parent
ad56d914f3
commit
37f9a97b0a
7 changed files with 34 additions and 10 deletions
|
@ -488,6 +488,17 @@ else()
|
|||
set(ARCH_FLAG "-march=armv8")
|
||||
else()
|
||||
set(ARCH_FLAG "-march=${ARCH}")
|
||||
if(ARCH STREQUAL "native")
|
||||
check_c_compiler_flag(-march=native CC_SUPPORTS_MARCH_NATIVE)
|
||||
if (NOT CC_SUPPORTS_MARCH_NATIVE)
|
||||
check_c_compiler_flag(-mtune=native CC_SUPPORTS_MTUNE_NATIVE)
|
||||
if (CC_SUPPORTS_MTUNE_NATIVE)
|
||||
set(ARCH_FLAG "-mtune=${ARCH}")
|
||||
else()
|
||||
set(ARCH_FLAG "")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-variable -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized")
|
||||
if(NOT MINGW)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue