annotate dmd/Param.d @ 79:43073c7c7769

updated to 2.035 also implemented a few missing functions still crashes in Import.importAll though
author Trass3r
date Mon, 30 Aug 2010 03:57:51 +0200
parents 10317f0c89a5
children e28b18c23469
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.Param;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
3 import dmd.Array;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.OutBuffer;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 // Put command line switches in here
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 struct Param
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9 bool obj; // write object file
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 bool link; // perform link
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 bool lib; // write library file instead of object file(s)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 bool multiobj; // break one object file into multiple ones
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 bool oneobj; // write one object file instead of multiple ones
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 bool trace; // insert profiling hooks
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 bool quiet; // suppress non-error messages
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 bool verbose; // verbose compile
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17 bool vtls; // identify thread local variables
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18 byte symdebug; // insert debug symbolic information
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
19 bool optimize; // run optimizer
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 bool cpu; // target CPU
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 bool isX86_64; // generate X86_64 bit code
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
22 bool isLinux; // generate code for linux
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 bool isOSX; // generate code for Mac OSX
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
24 bool isWindows; // generate code for Windows
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25 bool isFreeBSD; // generate code for FreeBSD
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
26 bool isSolaris; // generate code for Solaris
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
27 bool scheduler; // which scheduler to use
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
28 bool useDeprecated; // allow use of deprecated features
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
29 bool useAssert; // generate runtime code for assert()'s
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
30 bool useInvariants; // generate class invariant checks
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
31 bool useIn; // generate precondition checks
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
32 bool useOut; // generate postcondition checks
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
33 bool useArrayBounds; // generate array bounds checks
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
34 bool useSwitchError; // check for switches without a default
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
35 bool useUnitTests; // generate unittest code
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
36 bool useInline; // inline expand functions
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
37 bool release; // build release version
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
38 bool preservePaths; // !=0 means don't strip path from source file
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
39 bool warnings; // enable warnings
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
40 bool pic; // generate position-independent-code for shared libs
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
41 bool cov; // generate code coverage data
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
42 bool nofloat; // code should not pull in floating point support
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
43 byte Dversion; // D version number
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
44 bool ignoreUnsupportedPragmas; // rather than error on them
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
45 bool safe; // enforce safe memory model
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
46
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
47 string argv0; // program name
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
48 Array imppath; // array of char*'s of where to look for import modules
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
49 Array fileImppath; // array of char*'s of where to look for file import modules
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
50 string objdir; // .obj/.lib file output directory
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
51 string objname; // .obj file output name
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
52 string libname; // .lib file output name
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
53
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
54 bool doDocComments; // process embedded documentation comments
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
55 string docdir; // write documentation file to docdir directory
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
56 string docname; // write documentation file to docname
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
57 Array ddocfiles; // macro include files for Ddoc
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
58
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
59 bool doHdrGeneration; // process embedded documentation comments
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
60 string hdrdir; // write 'header' file to docdir directory
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
61 string hdrname; // write 'header' file to docname
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
62
79
43073c7c7769 updated to 2.035
Trass3r
parents: 0
diff changeset
63 bool doXGeneration; // write JSON file
43073c7c7769 updated to 2.035
Trass3r
parents: 0
diff changeset
64 string xfilename; // write JSON file to xfilename
43073c7c7769 updated to 2.035
Trass3r
parents: 0
diff changeset
65
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
66 uint debuglevel; // debug level
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
67 Array debugids; // debug identifiers
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
68
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
69 uint versionlevel; // version level
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
70 Array versionids; // version identifiers
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
71
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
72 bool dump_source;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
73
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
74 const(char)* defaultlibname; // default library for non-debug builds
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
75 const(char)* debuglibname; // default library for debug builds
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
76
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
77 string moduleDepsFile; // filename for deps output
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
78 OutBuffer moduleDeps; // contents to be written to deps file
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
79
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
80 // Hidden debug switches
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
81 bool debuga;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
82 bool debugb;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
83 bool debugc;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
84 bool debugf;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
85 bool debugr;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
86 bool debugw;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
87 bool debugx;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
88 bool debugy;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
89
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
90 bool run; // run resulting executable
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
91 size_t runargs_length;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
92 string[] runargs; // arguments for executable
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
93
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
94 // Linker stuff
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
95 Array objfiles;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
96 Array linkswitches;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
97 Array libfiles;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
98 string deffile;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
99 string resfile;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
100 string exefile;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
101 }