Mercurial > projects > ldc
comparison dmd/mars.c @ 695:a51fed3de34e
Some cleanups in command line argument descriptions.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 13 Oct 2008 11:13:20 +0200 |
parents | 931333ea35c6 |
children | ed9a9e6dd1cc |
comparison
equal
deleted
inserted
replaced
694:931333ea35c6 | 695:a51fed3de34e |
---|---|
175 -output-bc write LLVM bitcode\n\ | 175 -output-bc write LLVM bitcode\n\ |
176 -output-s write native assembly\n\ | 176 -output-s write native assembly\n\ |
177 -output-o write native object\n\ | 177 -output-o write native object\n\ |
178 \n\ | 178 \n\ |
179 -c do not link\n\ | 179 -c do not link\n\ |
180 -L<linkerflag> pass <linkerflag> to llvm-ld\n\ | 180 -L<linkerflag> pass <linkerflag> to linker\n\ |
181 \n\ | |
182 -g add symbolic debug info\n\ | |
183 -gc add symbolic debug info, pretend to be C\n\ | |
184 \n\ | 181 \n\ |
185 -w enable warnings\n\ | 182 -w enable warnings\n\ |
186 \n\ | 183 \n\ |
187 -H generate 'header' file\n\ | 184 -H generate 'header' file\n\ |
188 -Hd<hdrdir> write 'header' file to <hdrdir> directory\n\ | 185 -Hd<hdrdir> write 'header' file to <hdrdir> directory\n\ |
196 -m<arch> emit code specific to <arch> being one of:\n\ | 193 -m<arch> emit code specific to <arch> being one of:\n\ |
197 x86 x86-64 ppc32 ppc64\n\ | 194 x86 x86-64 ppc32 ppc64\n\ |
198 -t<os> emit code specific to <os> being one of:\n\ | 195 -t<os> emit code specific to <os> being one of:\n\ |
199 Linux, Windows, MacOSX, FreeBSD\n\ | 196 Linux, Windows, MacOSX, FreeBSD\n\ |
200 \n\ | 197 \n\ |
198 -g, -gc add symbolic debug info\n\ | |
199 \n\ | |
201 -O optimize, same as -O2\n\ | 200 -O optimize, same as -O2\n\ |
202 -O<n> optimize at level <n> (0-5)\n\ | 201 -O<n> optimize at level <n> (0-5)\n\ |
203 -inline do function inlining\n\ | 202 -inline do function inlining\n\ |
204 \n\ | 203 \n\ |
205 -debug enables asserts, invariants, contracts, boundscheck\n\ | 204 -debug enables asserts, invariants, contracts, boundscheck\n\ |
206 and sets debug=1\n\ | 205 and sets debug=1\n\ |
207 -release disables asserts, invariants, contracts boundscheck\n\ | 206 -release disables asserts, invariants, contracts, boundscheck\n\ |
208 \n\ | 207 \n\ |
209 -enable-<feature> and\n\ | 208 -enable-<feature> and\n\ |
210 -disable-<feature> where <feature> is one of\n\ | 209 -disable-<feature> where <feature> is one of\n\ |
211 asserts assert statements (default: on)\n\ | 210 asserts assert statements (default: on)\n\ |
212 invariants class and struct invariants (default: on)\n\ | 211 invariants class and struct invariants (default: on)\n\ |
376 global.params.useDeprecated = 1; | 375 global.params.useDeprecated = 1; |
377 else if (strcmp(p + 1, "c") == 0) | 376 else if (strcmp(p + 1, "c") == 0) |
378 global.params.link = 0; | 377 global.params.link = 0; |
379 else if (strcmp(p + 1, "fPIC") == 0) | 378 else if (strcmp(p + 1, "fPIC") == 0) |
380 global.params.pic = 1; | 379 global.params.pic = 1; |
381 else if (strcmp(p + 1, "g") == 0) | 380 else if (strcmp(p + 1, "g") == 0 || strcmp(p + 1, "gc") == 0) |
382 global.params.symdebug = 1; | 381 global.params.symdebug = 1; |
383 else if (strcmp(p + 1, "gc") == 0) | |
384 global.params.symdebug = 2; | |
385 else if (strcmp(p + 1, "v") == 0) | 382 else if (strcmp(p + 1, "v") == 0) |
386 global.params.verbose = 1; | 383 global.params.verbose = 1; |
387 else if (strcmp(p + 1, "vv") == 0) { | 384 else if (strcmp(p + 1, "vv") == 0) { |
388 Logger::enable(); | 385 Logger::enable(); |
389 very_verbose = true; | 386 very_verbose = true; |