Skip to content

Commit

Permalink
cmake: remove CMAKE_ASM_FLAGS variable in toolchain file
Browse files Browse the repository at this point in the history
As discussied in [YOCTO #14717] cmake contains a OEToolchainConfig.cmake
file to configure the toolchain correctly in cross-compile build for recipes
using cmake. The CMAKE_ASM_FLAGS are the configuration are meant for  assembly,
but the spelling is incorrect and the Flag is ASFLAGS for gcc and other compilers.
So this variable might neever have worked and it is better for
recipes to specify their own.

Signed-off-by: Martin Beeger <martin.beeger@online.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
  • Loading branch information
pizzard authored and rpurdie committed Aug 2, 2022
1 parent 7c7a488 commit 72729ff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
set( CMAKE_SYSTEM_NAME Linux )
set( CMAKE_C_FLAGS $ENV{CFLAGS} CACHE STRING "" FORCE )
set( CMAKE_CXX_FLAGS $ENV{CXXFLAGS} CACHE STRING "" FORCE )
set( CMAKE_ASM_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "" FORCE )
set( CMAKE_SYSROOT $ENV{OECORE_TARGET_SYSROOT} )

set( CMAKE_FIND_ROOT_PATH $ENV{OECORE_TARGET_SYSROOT} )
Expand Down

0 comments on commit 72729ff

Please sign in to comment.