annotate dmd/Param.d @ 114:e28b18c23469

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