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:
Anas Nashif 2019-09-25 05:40:11 -04:00
parent dffc944437
commit bff8f31aec

View file

@ -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
-Wall