mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 22:38:53 +00:00
fixed ARM arch test to prevent breaking on short arch strings
This commit is contained in:
parent
a4254a48f1
commit
54c785d0bb
@ -46,6 +46,10 @@ function (die msg)
|
|||||||
endfunction ()
|
endfunction ()
|
||||||
|
|
||||||
if (NOT ${ARCH} STREQUAL "")
|
if (NOT ${ARCH} STREQUAL "")
|
||||||
|
string(SUBSTRING ${ARCH} 0 3 IS_ARM)
|
||||||
|
string(TOLOWER ${IS_ARM} IS_ARM)
|
||||||
|
|
||||||
|
if (${IS_ARM} STREQUAL "arm")
|
||||||
string(SUBSTRING ${ARCH} 0 5 ARM_TEST)
|
string(SUBSTRING ${ARCH} 0 5 ARM_TEST)
|
||||||
string(TOLOWER ${ARM_TEST} ARM_TEST)
|
string(TOLOWER ${ARM_TEST} ARM_TEST)
|
||||||
|
|
||||||
@ -61,6 +65,7 @@ if (NOT ${ARCH} STREQUAL "")
|
|||||||
set(ARM7 0)
|
set(ARM7 0)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(WIN32 OR ARM7 OR ARM6)
|
if(WIN32 OR ARM7 OR ARM6)
|
||||||
set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
|
set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
|
||||||
|
Loading…
Reference in New Issue
Block a user