Skip to content

Commit 3ad96bf

Browse files
marc-hbnashif
authored andcommitted
extensions.cmake: add two cc/compile_options callgraph comments
This would have saved me about an hour exploring the code and piecing it together. Signed-off-by: Marc Herbert <[email protected]>
1 parent bd7f4fc commit 3ad96bf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

cmake/extensions.cmake

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,25 @@
4242
# ${CMAKE_CURRENT_SOURCE_DIR}/random_esp32.c
4343
# ${CMAKE_CURRENT_SOURCE_DIR}/utils.c
4444
# )
45+
#
46+
# As a very high-level introduction here are two call graphs that are
47+
# purposely minimalistic and incomplete.
48+
#
49+
# zephyr_library_cc_option()
50+
# |
51+
# v
52+
# zephyr_library_compile_options() --> target_compile_options()
53+
#
54+
#
55+
# zephyr_cc_option() ---> target_cc_option()
56+
# |
57+
# v
58+
# zephyr_cc_option_fallback() ---> target_cc_option_fallback()
59+
# |
60+
# v
61+
# zephyr_compile_options() ---> target_compile_options()
62+
#
63+
4564

4665
# https://cmake.org/cmake/help/latest/command/target_sources.html
4766
function(zephyr_sources)

0 commit comments

Comments
 (0)