diff dmd/Library.d @ 14:2cc604139636

Implemented Linux support for ddmd. Some parts are a bit hacky to just "get it working", that said, druntime and phobos compile, and unittests pass.
author Robert Clipsham <robert@octarineparrot.com>
date Sun, 04 Apr 2010 02:06:32 +0100
parents d706d958e4e8
children e28b18c23469
line wrap: on
line diff
--- a/dmd/Library.d	Wed Mar 31 16:29:36 2010 +0400
+++ b/dmd/Library.d	Sun Apr 04 02:06:32 2010 +0100
@@ -150,7 +150,8 @@
 	
     return cmp((*p1).name, (*p2).name);
 }
-
+version (Windows)
+{
 /*******************************************
  * Write a single entry into dictionary.
  * Returns:
@@ -979,4 +980,26 @@
 		// Write library header at start of buffer
 		memcpy(libbuf.data, &libHeader, libHeader.sizeof);
 	}
-}
\ No newline at end of file
+}
+} // version (Windows)
+else version(TARGET_LINUX)
+{
+class Library
+{
+    void setFilename(string dir, string filename)
+    {
+    	assert(0);
+    }
+    
+    void addObject(string module_name, void *buf, size_t buflen)
+    {
+    	assert(0);
+    }
+    
+    void write()
+    {
+    	assert(0);
+    }
+	
+}
+}