In addition to the current ON and OFF options, this adds the FORCE_ON
option, which causes a configuration error if libxml2 cannot be used.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I tested locally that if there's a current LLVM_ENABLE_LIBXML2:BOOL in CMakeCache.txt, that doesn't break things. There is no warning or error, it just seems to ignore the new string option and use the cached bool one.
So I guess this means it won't disrupt current builds, and builds that want to use FORCE_ON need to nuke their cache and reconfigure, which is expected.
Comment Actions
lgtm
cmake/config-ix.cmake | ||
---|---|---|
163 ↗ | (On Diff #122913) | I guess the string value OFF evaluates to false in this context? Scary loose typing, batman! |
cmake/config-ix.cmake | ||
---|---|---|
163 ↗ | (On Diff #122913) | Yup, also "0, OFF, NO, FALSE, N, IGNORE, NOTFOUND, the empty string, or ends in the suffix -NOTFOUND" :-) |