-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[libc++] Add support for picolibc and newlib in RUNTIMES_USE_LIBC #147956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
f892007
a876988
dad9c9a
03d92b6
edf2ced
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -481,6 +481,21 @@ include(config-ix) | |
| include(HandleLibC) # Setup the C library flags | ||
| include(HandleLibCXXABI) # Setup the ABI library flags | ||
|
|
||
| # Set C library in use to define respective macro in __config_site | ||
|
||
| # RUNTIMES_USE_LIBC was checked in HandleLibC to be one of accepted values | ||
| if (RUNTIMES_USE_LIBC STREQUAL "llvm-libc") | ||
| set(LIBCXX_LIBC_LLVMLIBC 1) | ||
| elseif (RUNTIMES_USE_LIBC STREQUAL "picolibc") | ||
| set(LIBCXX_LIBC_PICOLIBC 1) | ||
| # picolibc is derived from newlib and behaves the same in regards to libc++ | ||
| # so setting both here: | ||
| # * LIBCXX_LIBC_NEWLIB is used now | ||
| # * LIBCXX_LIBC_PICOLIBC can be used for further customizations later | ||
| set(LIBCXX_LIBC_NEWLIB 1) | ||
|
||
| elseif (RUNTIMES_USE_LIBC STREQUAL "newlib") | ||
| set(LIBCXX_LIBC_NEWLIB 1) | ||
| endif() | ||
|
|
||
| # FIXME(EricWF): See the FIXME on LIBCXX_ENABLE_PEDANTIC. | ||
| # Remove the -pedantic flag and -Wno-pedantic and -pedantic-errors | ||
| # so they don't get transformed into -Wno and -errors respectively. | ||
|
|
||
voltur01 marked this conversation as resolved.
Show resolved
Hide resolved
|
Uh oh!
There was an error while loading. Please reload this page.