--- CMakeLists.txt.orig 2017-03-23 19:17:39 UTC +++ CMakeLists.txt @@ -145,7 +145,7 @@ endif() # Build llvm with ccache if the package is present -set(LLVM_CCACHE_BUILD OFF CACHE BOOL "Set to ON for a ccache enabled build") +set(LLVM_CCACHE_BUILD ON CACHE BOOL "Set to ON for a ccache enabled build") if(LLVM_CCACHE_BUILD) find_program(CCACHE_PROGRAM ccache) if(CCACHE_PROGRAM) @@ -774,12 +774,12 @@ if(LLVM_TARGET_IS_CROSSCOMPILE_HOST) # (this is a variable that CrossCompile sets on recursive invocations) endif() -if(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)") +if(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly|BSDSUniX)") # 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("/usr/local/include") link_directories("/usr/local/lib") -endif(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)") +endif(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly|BSDSUniX)") if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS ) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include llvm/Support/Solaris.h")