tests: unit: do not build with -m32 on macOS
on macOS, i386 is deprecated, so build as 64bit instead. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
dffc944437
commit
bff8f31aec
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,10 @@ list(APPEND INCLUDE
|
||||||
.
|
.
|
||||||
)
|
)
|
||||||
|
|
||||||
set (CMAKE_C_FLAGS "-m32")
|
if(CMAKE_HOST_APPLE)
|
||||||
|
else()
|
||||||
|
set (CMAKE_C_FLAGS "-m32") #deprecated on macOS
|
||||||
|
endif()
|
||||||
|
|
||||||
target_compile_options(testbinary PRIVATE
|
target_compile_options(testbinary PRIVATE
|
||||||
-Wall
|
-Wall
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue