Skip to content

Commit 86c1f95

Browse files
author
Felipe Torrezan
authored
chore: Add RTL selection flag (#47)
The full C runtime library selection can be selected at compile-time with `--dlib_config full`. The compiler default is `--dlib_config normal`. Signed-off-by: Felipe <[email protected]>
1 parent fcdaba0 commit 86c1f95

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ add_executable(tutorial)
5353
target_sources(tutorial PRIVATE tutorial.c)
5454
5555
# compiler options
56-
target_compile_options(tutorial PRIVATE --cpu=cortex-m4)
56+
target_compile_options(tutorial PRIVATE
57+
--dlib_config full
58+
--cpu=cortex-m4)
5759
5860
# linker options
5961
target_link_options(tutorial PRIVATE

tutorial/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ add_executable(tutorial)
1111
target_sources(tutorial PRIVATE tutorial.c)
1212

1313
# compiler options
14-
target_compile_options(tutorial PRIVATE --cpu=cortex-m4)
14+
target_compile_options(tutorial PRIVATE
15+
--dlib_config full
16+
--cpu=cortex-m4)
1517

1618
# linker options
1719
target_link_options(tutorial PRIVATE

0 commit comments

Comments
 (0)