Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions subsys/net/lib/config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ zephyr_library_compile_definitions_ifdef(
)

zephyr_library_sources_ifdef(CONFIG_NET_CONFIG_SETTINGS init.c)

# Disable optimization for only init.c in order to avoid false
# positives from bounds checking in optimized builds.
set_source_files_properties(
${CMAKE_CURRENT_SOURCE_DIR}/init.c
PROPERTIES COMPILE_OPTIONS "-O0"
)
Comment on lines +10 to +15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not think this should be here, should not be adjusting build flags for files


zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)

if(CONFIG_NET_CONFIG_SETTINGS)
Expand Down
Loading