[libc-commits] [libc] [libc] Find Python 3 in standalone (PR #118871)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Thu Dec 5 13:47:26 PST 2024
================
@@ -30,6 +37,11 @@ endif()
# Default to C++17
set(CMAKE_CXX_STANDARD 17)
+if(LIBC_BUILT_STANDALONE)
+ find_package(Python3 ${LLVM_MINIMUM_PYTHON_VERSION} REQUIRED
+ COMPONENTS Interpreter)
+endif()
----------------
michaelrj-google wrote:
we also need `pyyaml` for newhdrgen. Not sure if that needs to be specified in the cmake, but adding a comment at least would be useful.
https://github.com/llvm/llvm-project/pull/118871
More information about the libc-commits
mailing list