We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0431756 commit 81f244fCopy full SHA for 81f244f
Arduino-toolchain.cmake
@@ -94,6 +94,12 @@ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
94
# Workaround for CMAKE_TRY_COMPILE_TARGET_TYPE. For later ESP32 cores this file is missing
95
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/build_opt.h" "")
96
97
+# ESP8266 build.opt fix
98
+if (NOT EXISTS "${CMAKE_BINARY_DIR}/core/build.opt")
99
+ file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/core)
100
+ file(TOUCH ${CMAKE_BINARY_DIR}/core/build.opt)
101
+endif()
102
+
103
# Do not try to link during the configure time, due to the dependency on the
104
# core, which we do not have a target yet.
105
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
0 commit comments