Skip to content

Commit b0cb741

Browse files
stephanosiogalak
authored andcommitted
cmake: host-gcc: Remove libgcc library path resolution
The host toolchain makes use of the host toolchain libraries (i.e. `-nostdlib` is not specified), so it is not necessary to detect the toolchain libgcc path and specify one manually. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 80e1b78 commit b0cb741

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

cmake/compiler/host-gcc/target.cmake

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ else()
1818
endif()
1919
find_program(CMAKE_CXX_COMPILER ${cplusplus_compiler} CACHE INTERNAL " " FORCE)
2020

21-
# Convert to list as cmake Modules/*.cmake do it
22-
STRING(REGEX REPLACE " +" ";" PRINT_LIBGCC_ARGS "${CMAKE_C_FLAGS}")
23-
# This libgcc code is partially duplicated in compiler/*/target.cmake
24-
execute_process(
25-
COMMAND ${CMAKE_C_COMPILER} "${PRINT_LIBGCC_ARGS}" --print-libgcc-file-name
26-
OUTPUT_VARIABLE LIBGCC_FILE_NAME
27-
OUTPUT_STRIP_TRAILING_WHITESPACE
28-
)
29-
assert_exists(LIBGCC_FILE_NAME)
30-
3121
set(NOSTDINC "")
3222

3323
# Note that NOSYSDEF_CFLAG may be an empty string, and

0 commit comments

Comments
 (0)