File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,5 @@ target_compile_definitions(newlib PUBLIC
1818 -D_CLOCKS_PER_SEC_=CONFIG_FREERTOS_HZ -D_POSIX_THREADS=1 -D_UNIX98_THREAD_MUTEX_ATTRIBUTES=1
1919 )
2020
21- if (CONFIG_ENABLE_PTHREAD)
22- target_compile_definitions (newlib PUBLIC
23- -D_POSIX_THREADS=1 -D_UNIX98_THREAD_MUTEX_AT
24- )
25- endif ()
26-
2721target_link_libraries (newlib "-L ${CMAKE_CURRENT_SOURCE_DIR} /newlib/lib" )
2822target_link_libraries (newlib "${LIBC} " "${LIBM} " )
Original file line number Diff line number Diff line change 11CFLAGS += -D_CLOCKS_PER_SEC_=CONFIG_FREERTOS_HZ -D_POSIX_THREADS=1 -D_UNIX98_THREAD_MUTEX_ATTRIBUTES=1
2- ifdef CONFIG_ENABLE_PTHREAD
3- CFLAGS += -D_POSIX_THREADS=1 -D_UNIX98_THREAD_MUTEX_AT
4- endif
2+ CPPFLAGS += -D_CLOCKS_PER_SEC_=CONFIG_FREERTOS_HZ -D_POSIX_THREADS=1 -D_UNIX98_THREAD_MUTEX_ATTRIBUTES=1
You can’t perform that action at this time.
0 commit comments