[LLVMdev] cygwin build problems
    Jay Foad 
    jay.foad at gmail.com
       
    Thu Oct 30 09:00:51 PDT 2008
    
    
  
> I've attached a patch to fix these. This allows me to build LLVM on cygwin.
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.
Jay.
    
    
More information about the llvm-dev
mailing list