1# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD 2# 3# SPDX-License-Identifier: Apache-2.0 4 5set(CMAKE_SYSTEM_NAME Generic) 6 7set(CMAKE_C_COMPILER xtensa-esp32s3-elf-gcc) 8set(CMAKE_CXX_COMPILER xtensa-esp32s3-elf-g++) 9set(CMAKE_ASM_COMPILER xtensa-esp32s3-elf-gcc) 10set(_CMAKE_TOOLCHAIN_PREFIX xtensa-esp32s3-elf-) 11 12set(CMAKE_C_FLAGS "-mlongcalls" CACHE STRING "C Compiler Base Flags" FORCE) 13set(CMAKE_CXX_FLAGS "-mlongcalls" CACHE STRING "C++ Compiler Base Flags" FORCE) 14set(CMAKE_ASM_FLAGS "${UNIQ_CMAKE_ASM_FLAGS}" CACHE STRING "ASM Compiler Base Flags" FORCE) 15 16set(CMAKE_EXE_LINKER_FLAGS "-Wl,--gc-sections" CACHE STRING "Linker Base Flags") 17