target_arm64.cmake 409 B

12345678910111213
  1. # SPDX-License-Identifier: Apache-2.0
  2. if(DEFINED GCC_M_CPU)
  3. list(APPEND TOOLCHAIN_C_FLAGS -mcpu=${GCC_M_CPU})
  4. list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=${GCC_M_CPU})
  5. endif()
  6. if(DEFINED GCC_M_ARCH)
  7. list(APPEND TOOLCHAIN_C_FLAGS -march=${GCC_M_ARCH})
  8. list(APPEND TOOLCHAIN_LD_FLAGS -march=${GCC_M_ARCH})
  9. endif()
  10. list(APPEND TOOLCHAIN_C_FLAGS -mabi=lp64)
  11. list(APPEND TOOLCHAIN_LD_FLAGS -mabi=lp64)