mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-09 17:03:35 -09:00
package/pkg-cmake: remove override of CMAKE_ASM_COMPILER
CMAKE_ASM_COMPILER is supposed to point to a compiler wrapper (i.e.
gcc), _not_ to as directly. If it is not set, it will use the value of
CMAKE_C_COMPILER. That's exactly what we want, so there is no need to
set CMAKE_ASM_COMPILER at all.
For target, we don't set CMAKE_ASM_COMPILER either.
Setting CMAKE_ASM_COMPILER leads to build failures for any package that
actually tries to build .S files for the host - like llvm. This is why
llvm has an override for it.
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
(cherry picked from commit 22af5f2939)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
65b37af817
commit
df83eb7bc7
@@ -147,7 +147,6 @@ define $(2)_CONFIGURE_CMDS
|
||||
-DCMAKE_CXX_FLAGS="$$(HOST_CXXFLAGS)" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="$$(HOST_LDFLAGS)" \
|
||||
-DCMAKE_SHARED_LINKER_FLAGS="$$(HOST_LDFLAGS)" \
|
||||
-DCMAKE_ASM_COMPILER="$$(HOSTAS)" \
|
||||
-DCMAKE_C_COMPILER="$$(CMAKE_HOST_C_COMPILER)" \
|
||||
-DCMAKE_CXX_COMPILER="$$(CMAKE_HOST_CXX_COMPILER)" \
|
||||
$(if $$(CMAKE_HOST_C_COMPILER_LAUNCHER),\
|
||||
|
||||
Reference in New Issue
Block a user