comparison dmd/mars.h @ 1281:29d3861aa2da

Make sure this still compiles after LLVM r70437, which introduces a specialization for command-line option template parser<char> which does the wrong thing for us...
author Frits van Bommel <fvbommel wxs.nl>
date Thu, 30 Apr 2009 12:25:04 +0200
parents e961851fb8be
children 46f6365a50d7
comparison
equal deleted inserted replaced
1280:00a307a393f2 1281:29d3861aa2da
131 OSMacOSX, 131 OSMacOSX,
132 OSFreeBSD, 132 OSFreeBSD,
133 OSSolaris, 133 OSSolaris,
134 }; 134 };
135 135
136 typedef unsigned char ubyte;
137
136 // Put command line switches in here 138 // Put command line switches in here
137 struct Param 139 struct Param
138 { 140 {
139 bool obj; // write object file 141 bool obj; // write object file
140 bool link; // perform link 142 bool link; // perform link
141 bool verbose; // verbose compile 143 bool verbose; // verbose compile
142 char symdebug; // insert debug symbolic information 144 ubyte symdebug; // insert debug symbolic information
143 #if !IN_LLVM 145 #if !IN_LLVM
144 // LDC uses a different mechanism 146 // LDC uses a different mechanism
145 bool optimize; // run optimizer 147 bool optimize; // run optimizer
146 char optimizeLevel; // optimization level 148 char optimizeLevel; // optimization level
147 #endif 149 #endif
157 bool useArrayBounds; // generate array bounds checks 159 bool useArrayBounds; // generate array bounds checks
158 bool useSwitchError; // check for switches without a default 160 bool useSwitchError; // check for switches without a default
159 bool useUnitTests; // generate unittest code 161 bool useUnitTests; // generate unittest code
160 bool useInline; // inline expand functions 162 bool useInline; // inline expand functions
161 bool warnings; // enable warnings 163 bool warnings; // enable warnings
162 char Dversion; // D version number 164 ubyte Dversion; // D version number
163 char safe; // enforce safe memory model 165 char safe; // enforce safe memory model
164 166
165 char *argv0; // program name 167 char *argv0; // program name
166 Array *imppath; // array of char*'s of where to look for import modules 168 Array *imppath; // array of char*'s of where to look for import modules
167 Array *fileImppath; // array of char*'s of where to look for file import modules 169 Array *fileImppath; // array of char*'s of where to look for file import modules