1# SPDX-License-Identifier: Apache-2.0 2if(DEFINED GCC_M_CPU) 3 list(APPEND TOOLCHAIN_C_FLAGS -mcpu=${GCC_M_CPU}) 4 list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=${GCC_M_CPU}) 5endif() 6 7if(DEFINED GCC_M_ARCH) 8 list(APPEND TOOLCHAIN_C_FLAGS -march=${GCC_M_ARCH}) 9 list(APPEND TOOLCHAIN_LD_FLAGS -march=${GCC_M_ARCH}) 10endif() 11 12if(DEFINED GCC_M_TUNE) 13 list(APPEND TOOLCHAIN_C_FLAGS -mtune=${GCC_M_TUNE}) 14 list(APPEND TOOLCHAIN_LD_FLAGS -mtune=${GCC_M_TUNE}) 15endif() 16