Mercurial > projects > ddmd
annotate dmd/Global.d @ 135:af1bebfd96a4 dmd2037
dmd 2.038
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 13 Sep 2010 22:19:42 +0100 |
parents | 60bb0fe4563e |
children | 90821c10b6a7 |
rev | line source |
---|---|
0 | 1 module dmd.Global; |
2 | |
114 | 3 import dmd.common; |
0 | 4 import dmd.Array; |
5 import dmd.Param; | |
6 | |
7 class Global | |
8 { | |
9 string mars_ext = "d"; | |
10 string sym_ext = "d"; | |
11 | |
12 version (TARGET_WINDOS) { | |
13 string obj_ext = "obj"; | |
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.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
14 } else version (POSIX) { // TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS |
0 | 15 string obj_ext = "o"; |
16 } else version (TARGET_NET) { | |
17 } else { | |
18 static assert (false); | |
19 } | |
20 | |
21 version (TARGET_WINDOS) { | |
22 string lib_ext = "lib"; | |
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.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
23 } else version (POSIX) { // TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS |
0 | 24 string lib_ext = "a"; |
25 } else version (TARGET_NET) { | |
26 } else { | |
27 static assert (false); | |
28 } | |
79 | 29 string doc_ext = "html"; // for Ddoc generated files |
30 string ddoc_ext = "ddoc"; // for Ddoc macro include files | |
31 string json_ext = "json"; | |
0 | 32 string hdr_ext = "di"; // for D 'header' import files |
33 string copyright= "Copyright (c) 1999-2009 by Digital Mars"; | |
75
cfa3747ebe4c
Changed dmd to ddmd in the "usage" message and added "ported to D by community" to desription to distinguish from pure dmd build
korDen
parents:
73
diff
changeset
|
34 string written = "written by Walter Bright, ported to D by community"; |
0 | 35 ///version (TARGET_NET) { |
36 /// "\nMSIL back-end (alpha release) by Cristian L. Vlasceanu and associates."; | |
37 ///} | |
38 | |
39 string[] path; // Array of char*'s which form the import lookup path | |
40 string[] filePath; // Array of char*'s which form the file import lookup path | |
41 int structalign = 8; | |
135 | 42 string version_ = "v2.038"; |
0 | 43 |
44 Param params; | |
45 uint errors; // number of errors reported so far | |
46 uint gag; // !=0 means gag reporting of errors | |
47 | |
48 this() | |
49 { | |
50 params.versionids = new Array(); | |
51 } | |
52 } | |
53 | |
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.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
54 Global global; |