Remove the hack adding /usr/local paths on FreeBSD and DragonFlyBSD.
It does not seem to be necessary today, and it breaks cross builds.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This patch certainly looks correct for fixing the symptom, but I'm somewhat concerned that the original logic was incorrect anyway. I believe CMake's FindLibrary and FindPackage work correctly with things installed in /usr/local on FreeBSD, so I don't know why we need these.
Comment Actions
It seems to find libxml2 correctly. However, rebuilding everything will take a while. I'll report back when I confirm that everything built without issues.
Comment Actions
I can confirm that it builds fine without that block and that there are no changes in CMakeCache.txt.
Comment Actions
That sounds good. My guess would be that this was "needed" at some point in the past because certain targets weren't adding things like ${LIBXML2_INCLUDE_DIRS} with target_include_directories, etc.