[libc-commits] [libc] [libc] Include algorithm.h to parser.h (PR #87125)

via libc-commits libc-commits at lists.llvm.org
Fri Mar 29 21:17:12 PDT 2024


================
@@ -10,6 +10,7 @@
 #define LLVM_LIBC_SRC_STDIO_PRINTF_CORE_PARSER_H
 
 #include "include/llvm-libc-macros/stdfix-macros.h"
+#include "src/__support/CPP/algorithm.h" // max
----------------
lntue wrote:

Can you also add `libc.src.__support.CPP.algorithm` to the `DEPENDS` list of `parser` target in the `CMakeLists.txt`, and `:__support_cpp_algorithm` to the `deps` list of `printf_parser` target in `llvm-project/utils/bazel/llvm-project-overlay/libc/BUILD.bazel`?  Thanks,

https://github.com/llvm/llvm-project/pull/87125


More information about the libc-commits mailing list