Skip to content

Commit b4b3960

Browse files
committed
fixup! [libc] Output all headers with LIBC_CONF_OUTPUT_ALL_HEADERS
1 parent d3f4b77 commit b4b3960

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ endif()
135135
option(LLVM_LIBC_FULL_BUILD "Build and test LLVM libc as if it is the full libc" ${default_to_full_build})
136136
option(LLVM_LIBC_IMPLEMENTATION_DEFINED_TEST_BEHAVIOR "Build LLVM libc tests assuming our implementation-defined behavior" ON)
137137
option(LLVM_LIBC_ENABLE_LINTING "Enables linting of libc source files" OFF)
138+
option(LLVM_LIBC_ALL_HEADERS "Outputs all functions in header files, regardless of whether it has been implemented" OFF)
138139

139140
option(LIBC_CONFIG_PATH "The path to user provided folder that configures the build for the target system." OFF)
140141

libc/cmake/modules/LLVMLibCHeaderRules.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function(add_gen_header target_name)
9898
set(dep_file "${out_file}.d")
9999
set(yaml_file ${CMAKE_SOURCE_DIR}/${ADD_GEN_HDR_YAML_FILE})
100100

101-
if(LIBC_CONF_OUTPUT_ALL_HEADERS)
101+
if(LLVM_LIBC_ALL_HEADERS)
102102
set(entry_points "")
103103
else()
104104
set(entry_points "${TARGET_ENTRYPOINT_NAME_LIST}")

0 commit comments

Comments
 (0)