Skip to content
Commit b3949415 authored by Luca Fancellu's avatar Luca Fancellu Committed by Stephanos Ioannidis
Browse files

cmake: gcc: Use --sysroot with gcc when SYSROOT_DIR is provided



When SYSROOT_DIR is provided, gcc should use it through the --sysroot=
option otherwise some commands won't work as expected.

For example, in the Yocto environment when cross compiling,
--print-libgcc-file-name prints only "libgcc.a" instead of the full
path to it and the subsequent assert_exists(LIBGCC_FILE_NAME) will
fail.

Fixes #45578
Signed-off-by: default avatarLuca Fancellu <luca.fancellu@arm.com>
parent 4cc5c56d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment