Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv: build: Support compiling kernel using Xuantie toolchain
Compared to toolchains with gcc12 or above, the Xuantie toolchain gcc10 does not have vector support enabled by default, and -march needs to be explicitly specified. 1. Xuantie toolchain gcc10 does not support using AS_HAS_OPTION_ARCH to automatically detect vector extensions and enable it. 2. The ld tool version of Xuantie toolchain gcc10 is 2.35, which is less than the 2.38 required by TOOLCHAIN_HAS_V. Signed-off-by: Chen Pei <[email protected]>
- Loading branch information