[libc-commits] [libc] [libc] Output all headers with LIBC_CONF_OUTPUT_ALL_HEADERS (PR #144114)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Fri Jun 13 10:03:32 PDT 2025
================
@@ -97,8 +97,13 @@ function(add_gen_header target_name)
set(out_file ${LIBC_INCLUDE_DIR}/${relative_path})
set(dep_file "${out_file}.d")
set(yaml_file ${CMAKE_SOURCE_DIR}/${ADD_GEN_HDR_YAML_FILE})
+
+ if(LIBC_CONF_OUTPUT_ALL_HEADERS)
----------------
michaelrj-google wrote:
This flag looks good, but you should add an `option` in the cmake to the top level CMakeLists: https://github.com/llvm/llvm-project/blob/main/libc/CMakeLists.txt#L138
Also the `CONF` options are intended to come from `config.json`, this user-exposed cmake flag can just be `LIBC_OUTPUT_ALL_HEADERS`
https://github.com/llvm/llvm-project/pull/144114
More information about the libc-commits
mailing list