File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ endif()
135
135
option (LLVM_LIBC_FULL_BUILD "Build and test LLVM libc as if it is the full libc" ${default_to_full_build} )
136
136
option (LLVM_LIBC_IMPLEMENTATION_DEFINED_TEST_BEHAVIOR "Build LLVM libc tests assuming our implementation-defined behavior" ON )
137
137
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 they are enabled on this target" OFF )
138
139
139
140
option (LIBC_CONFIG_PATH "The path to user provided folder that configures the build for the target system." OFF )
140
141
Original file line number Diff line number Diff line change @@ -97,8 +97,13 @@ function(add_gen_header target_name)
97
97
set (out_file ${LIBC_INCLUDE_DIR} /${relative_path} )
98
98
set (dep_file "${out_file} .d" )
99
99
set (yaml_file ${CMAKE_SOURCE_DIR} /${ADD_GEN_HDR_YAML_FILE} )
100
+
101
+ if (LLVM_LIBC_ALL_HEADERS )
102
+ set (entry_points "" )
103
+ else ()
104
+ set (entry_points "${TARGET_ENTRYPOINT_NAME_LIST} " )
105
+ endif ()
100
106
101
- set (entry_points "${TARGET_ENTRYPOINT_NAME_LIST} " )
102
107
list (TRANSFORM entry_points PREPEND "--entry-point=" )
103
108
104
109
add_custom_command (
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function(add_unittest_framework_library name)
35
35
else ()
36
36
_get_common_test_compile_options (compile_options "" "" )
37
37
target_compile_options (${name} .unit PRIVATE ${compile_options} )
38
- endif ()
38
+ endif ()
39
39
40
40
_get_hermetic_test_compile_options (compile_options "" )
41
41
target_include_directories (${name} .hermetic PRIVATE ${LIBC_INCLUDE_DIR} )
You can’t perform that action at this time.
0 commit comments