[PATCH] D94491: [llvm] [cmake] Remove obsolete /usr/local hack for *BSD

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 12 09:18:38 PST 2021


mgorny updated this revision to Diff 316123.
mgorny retitled this revision from "[llvm] [cmake] Do not inject /usr/local paths when crosscompiling" to "[llvm] [cmake] Remove obsolete /usr/local hack for *BSD".
mgorny edited the summary of this revision.
mgorny added a comment.

Change the patch to remove the hack entirely.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94491/new/

https://reviews.llvm.org/D94491

Files:
  llvm/CMakeLists.txt


Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -911,13 +911,6 @@
 # (this is a variable that CrossCompile sets on recursive invocations)
 endif()
 
-if(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)")
-  # On FreeBSD, /usr/local/* is not used by default. In order to build LLVM
-  # with libxml2, iconv.h, etc., we must add /usr/local paths.
-  include_directories(SYSTEM "/usr/local/include")
-  link_directories("/usr/local/lib")
-endif(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)")
-
 if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
    # special hack for Solaris to handle crazy system sys/regset.h
    include_directories("${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/Solaris")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94491.316123.patch
Type: text/x-patch
Size: 777 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210112/e72a2898/attachment.bin>


More information about the llvm-commits mailing list