[LLVMdev] cygwin build problems

Óscar Fuentes ofv at wanadoo.es
Thu Oct 30 09:34:17 PDT 2008


"Jay Foad" <jay.foad at gmail.com> writes:

> Sorry, I didn't mean to include this hunk:
>
> Index: CMakeLists.txt
> ===================================================================
> --- CMakeLists.txt	(revision 58429)
> +++ CMakeLists.txt	(working copy)
> @@ -31,8 +31,13 @@
>    )
>
>  if(WIN32)
> -  set(LLVM_ON_WIN32 1)
> -  set(LLVM_ON_UNIX 0)
> +  if(CYGWIN)
> +    set(LLVM_ON_WIN32 0)
> +    set(LLVM_ON_UNIX 1)
> +  else(CYGWIN)
> +    set(LLVM_ON_WIN32 1)
> +    set(LLVM_ON_UNIX 0)
> +  endif(CYGWIN)
>    set(LTDL_SHLIB_EXT ".dll")
>    set(EXEEXT ".exe")
>    # Maximum path length is 160 for non-unicode paths
>
> But I do need it, or something like it, in order to build with CMake
> on cygwin.

It is okay to apply this change.

-- 
Oscar




More information about the llvm-dev mailing list