Reputation: 4215
When building LLVM cmake configuration fails when it cannot find a Python interpreter. As I understand, Python is needed to run LLVM tests. I'm not interested in testing LLVM, tests are explicitly disabled in my configuration. Is it possible to force cmake not to require Python in this case?
Upvotes: 3
Views: 1562
Reputation: 4215
Building LLVM without Python is not possible at the moment. LLVM configuration uses llvm-build Python script to generate some additional files.
Upvotes: 2
Reputation: 11368
I would try to pass LLVM_INCLUDE_TESTS=NO
to a cmake
command:
LLVM_INCLUDE_TESTS:BOOL
Generate build targets for the LLVM unit tests. Defaults to ON. You can use this option to disable the generation of build targets for the LLVM unit tests.
See LLVM docs: LLVM-specific variables.
Upvotes: 0