Provide path to Solaris.h include (Bug 28370)

Rainer Orth via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 11 05:13:24 PDT 2016


Rainer Orth <ro at CeBiTec.Uni-Bielefeld.DE> writes:

> As described in Bug 28370, llvm/Support/Solaris.h isn't found during the
> cmake step of a VPATH build.
>
> The following patch (already attached to the bug) fixes this by
> providing a path to the header.
>
> It allowed a i386-pc-solaris2.12 build to finish.

This one-line patch has remained unreviewed for almost 6 weeks.  Any
word on it?

Thanks.
	Rainer


> # HG changeset patch
> # Parent  782d19ff9643c715482ad799ea49e87f6591309f
> Provide path to Solaris.h include
>
> diff --git a/CMakeLists.txt b/CMakeLists.txt
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -660,7 +660,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBS
>  endif(${CMAKE_SYSTEM_NAME} MATCHES "(FreeBSD|DragonFly)")
>  
>  if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
> -   SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include llvm/Support/Solaris.h")
> +   SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include ${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/Solaris.h")
>  endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )
>  
>  # Make sure we don't get -rdynamic in every binary. For those that need it,

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


More information about the llvm-commits mailing list