build system: don't add GCC-specific options when building with clang

This commit is contained in:
Ivan Grokhotkov
2021-01-20 02:15:43 +01:00
parent 06f22fc4b0
commit ed7fbfefac
5 changed files with 15 additions and 13 deletions
+3 -8
View File
@@ -1,8 +1,3 @@
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
set(CMAKE_ASM_COMPILER gcc)
set(CMAKE_C_FLAGS "-Wno-frame-address" CACHE STRING "C Compiler Base Flags")
set(CMAKE_CXX_FLAGS "-Wno-frame-address" CACHE STRING "C++ Compiler Base Flags")
# The build system assumes that toolchain-${IDF_TARGET}.cmake file
# is present. It is not necessary for the host build, so we keep
# this file as a placeholder.