Mercurial > projects > ddmd
diff dmd/FuncDeclaration.d @ 22:fd4acc376c45
Implemented object file output and linking on linux.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Thu, 08 Apr 2010 04:21:03 +0100 |
parents | ddae60498573 |
children | cab4c37afb89 |
line wrap: on
line diff
--- a/dmd/FuncDeclaration.d Wed Apr 07 00:51:29 2010 +0100 +++ b/dmd/FuncDeclaration.d Thu Apr 08 04:21:03 2010 +0100 @@ -2742,7 +2742,7 @@ // Pull in RTL startup code if (func.isMain()) { objextdef("_main"); -version (XXX) { ///TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS +version (POSIX) { ///TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS obj_ehsections(); // initialize exception handling sections } else { objextdef("__acrtused_con"); @@ -3084,7 +3084,7 @@ ss.toObjFile(0); } -version (XXX) { ///TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS +version (POSIX) { ///TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS // A hack to get a pointer to this function put in the .dtors segment if (ident && ident.toChars() == "_STD") { obj_staticdtor(s);