Skip to content

Commit 7576ad7

Browse files
authored
Enable all headers on LLVM-libc (#382)
Follows from llvm/llvm-project#144114 LLVM-libc doesn't provide all functions, but it is reasonable to expect the signature in the header file, consistent with picolibc. This allows the user to implement it later.
2 parents 3924e38 + cb0efeb commit 7576ad7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arm-software/embedded/arm-runtimes/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ if(C_LIBRARY STREQUAL llvmlibc)
657657
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON
658658
-DLLVM_ENABLE_RUNTIMES=libc
659659
-DLLVM_INCLUDE_TESTS=OFF # llvmlibc's tests require C++, so can't be built until llvmlibc can support libc++
660+
-DLLVM_LIBC_ALL_HEADERS=ON
660661
-DLLVM_LIBC_FULL_BUILD=ON
661662
STEP_TARGETS configure build install
662663
USES_TERMINAL_CONFIGURE TRUE
@@ -754,7 +755,7 @@ if(ENABLE_CXX_LIBS)
754755
-DLIBCXX_ENABLE_EXCEPTIONS=${ENABLE_EXCEPTIONS}
755756
-DLIBCXX_ENABLE_RTTI=${ENABLE_RTTI}
756757
)
757-
set(lib_compile_flags "${lib_compile_flags} \"-Dvfprintf(stream$<COMMA> format$<COMMA> vlist)=vprintf(format$<COMMA> vlist)\" \"-Dfprintf(stream$<COMMA> format$<COMMA> ...)=printf(format)\" -D_LIBCPP_PRINT=1")
758+
set(lib_compile_flags "${lib_compile_flags} -D_LIBCPP_PRINT=1")
758759
elseif(C_LIBRARY MATCHES "^newlib")
759760
set(cxxlibs_extra_cmake_options
760761
-DLIBCXXABI_ENABLE_THREADS=OFF

0 commit comments

Comments
 (0)