|
|
@@ -5,6 +5,7 @@ unset(compile_options)
|
|
|
unset(c_compile_options)
|
|
|
unset(cxx_compile_options)
|
|
|
unset(compile_definitions)
|
|
|
+unset(link_options)
|
|
|
|
|
|
# Add the following build specifications here, since these seem to be dependent
|
|
|
# on config values on the root Kconfig.
|
|
|
@@ -62,11 +63,13 @@ elseif(CONFIG_COMPILER_STACK_CHECK_MODE_ALL)
|
|
|
list(APPEND compile_options "-fstack-protector-all")
|
|
|
endif()
|
|
|
|
|
|
+list(APPEND link_options "-fno-lto")
|
|
|
|
|
|
idf_build_set_property(COMPILE_OPTIONS "${compile_options}" APPEND)
|
|
|
idf_build_set_property(C_COMPILE_OPTIONS "${c_compile_options}" APPEND)
|
|
|
idf_build_set_property(CXX_COMPILE_OPTIONS "${cxx_compile_options}" APPEND)
|
|
|
idf_build_set_property(COMPILE_DEFINITIONS "${compile_definitions}" APPEND)
|
|
|
+idf_build_set_property(LINK_OPTIONS "${link_options}" APPEND)
|
|
|
|
|
|
idf_build_get_property(build_component_targets __BUILD_COMPONENT_TARGETS)
|
|
|
|