host-gcc: add missing set(CMAKE_ASM_FLAGS -m32)
This fixes the following error on all x86 BOARDs (qemu_x86, galileo,... see "make usage" for the complete list) when compiling assembly files with ZEPHYR_TOOLCHAIN_VARIANT=host: cc1: error: CPU you selected does not support x86-64 instruction set This also fixes the following error when compiling minnowboard, up_squared and up_squared_sbl boards with ZEPHYR_TOOLCHAIN_VARIANT=host: cc1: error: -mpreferred-stack-boundary=2 is not between 3 and 12 This fix alone is not enough to compile any of these boards; however it moves compilation much further to the next, unrelated failure(s), namely: 'undefined __udivdi3' and other libgcc symbols for all x86 boards; + some other, additional issues for some boards. See next commit. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
parent
1ee7b0dc5a
commit
5ac9cfd131
1 changed files with 2 additions and 1 deletions
|
@ -9,9 +9,10 @@ find_program(CMAKE_RANLILB ranlib )
|
|||
find_program(CMAKE_READELF readelf)
|
||||
find_program(CMAKE_GDB gdb )
|
||||
|
||||
set(CMAKE_ASM_FLAGS -m32 )
|
||||
set(CMAKE_C_FLAGS -m32 )
|
||||
set(CMAKE_CXX_FLAGS -m32 )
|
||||
set(CMAKE_SHARED_LINKER_FLAGS -m32 )
|
||||
set(CMAKE_SHARED_LINKER_FLAGS -m32 ) # unused?
|
||||
|
||||
if(CONFIG_CPLUSPLUS)
|
||||
set(cplusplus_compiler g++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue