File tree 1 file changed +2
-5
lines changed 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1
- include (CMakeForceCompiler)
2
-
3
1
set (CMAKE_SYSTEM_NAME ESP8266)
4
2
set (CMAKE_SYSTEM_VERSION 1)
5
3
@@ -39,10 +37,9 @@ list(GET ESP8266_ESPTOOLS 0 ESP8266_ESPTOOL)
39
37
40
38
message ("Using " ${ESP8266_XTENSA_C_COMPILER} " C compiler." )
41
39
message ("Using " ${ESP8266_XTENSA_CXX_COMPILER} " C++ compiler." )
42
- message ("Using " ${ESP8266_ESPTOOL} " esptool binary." )
43
40
44
- CMAKE_FORCE_C_COMPILER( ${ESP8266_XTENSA_C_COMPILER} GNU_C )
45
- CMAKE_FORCE_CXX_COMPILER( ${ESP8266_XTENSA_CXX_COMPILER} GNU_CXX )
41
+ set (CMAKE_C_COMPILER ${ESP8266_XTENSA_C_COMPILER} )
42
+ set (CMAKE_CXX_COMPILER ${ESP8266_XTENSA_CXX_COMPILER} )
46
43
47
44
set (CMAKE_C_FLAGS "-Os -g -std=gnu99 -Wpointer-arith -Wno-implicit-function-declaration -Wundef -pipe -D__ets__ -DICACHE_FLASH -fno-inline-functions -ffunction-sections -nostdlib -mlongcalls -mtext-section-literals -falign-functions=4 -fdata-sections" CACHE STRING "C compiler flags" )
48
45
set (CMAKE_CXX_FLAGS "-Os -g -D__ets__ -DICACHE_FLASH -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections" CACHE STRING "CXX compiler flags" )
You can’t perform that action at this time.
0 commit comments