Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Friendlier CMake output and ReadMe tips (#949)
* Report CMAKE_PREFIX_PATH, since the error message with BUILD_TV set can be puzzling if you forget to set this. * ReadMe: CMake may look in /opt/ CMake’s find_package() “searches well-known locations” for configuration information, which can be a nightmare for those of us who have ever had to run an ill-behaved build script, even if we renamed the result, it is not in $PATH, and thought we were safe: https://cmake.org/cmake/help/latest/guide/using-dependencies/index.html#using-pre-built-packages-with-find-package * Less output for long Lit test `llvm-lit -s` rather than `-vv` for thousands of tests. * Detecting unsound transformations in a local run * README.md CMake advice Check the “LLVMConfig.cmake” and “CMAKE_PREFIX_PATH” output. * Painful lessons trying to build for our 15.0.4 fork * Tightly coupled to LLVM top of tree source: E.g., the source ca. 15.0.7 was broken for our 15.0.4 fork, due to LLVM f09cf34d00 moving Triple.h ⇒ Alive2 805cf71. * Experiment with Clang versions and vendors: I couldn’t compile alive2/ir/memory.h:90 with Homebrew Clang 16.0.5, but (surprisingly) could with Apple clang-1400.0.29.202, which is normally worse on open source projects. This may have been LLVM bug 32386. * Troubleshooting tip about `BUILD_SHARED_LIBS` Troubleshooting tip about `BUILD_SHARED_LIBS` with `USEDLIBS` and `LLVMLIBS` and perhaps `dd_llvm_target`. The first two are from https://llvm.org/docs/Projects.html#variables-for-building-programs. I got further, but not far enough, in linking when I supplemented `dd_llvm_target` with conditional `link_libraries`.
- Loading branch information