Mercurial > projects > ldc
comparison dmd/module.c @ 1645:1d2d1aa16841
Don't error out with -singleobj, -of, and -c/-output-{bc,ll,o,s}.
author | Matti Niemenmaa <matti.niemenmaa+hg@iki.fi> |
---|---|
date | Tue, 09 Mar 2010 23:20:39 +0200 |
parents | 9bf06e02070b |
children | a8fc855f156e |
comparison
equal
deleted
inserted
replaced
1644:9176437d98be | 1645:1d2d1aa16841 |
---|---|
217 fatal(); | 217 fatal(); |
218 } | 218 } |
219 files.insert(std::make_pair(str, NewMod)); | 219 files.insert(std::make_pair(str, NewMod)); |
220 } | 220 } |
221 | 221 |
222 void Module::buildTargetFiles() | 222 void Module::buildTargetFiles(bool singleObj) |
223 { | 223 { |
224 if(objfile && | 224 if(objfile && |
225 (!doDocComment || docfile) && | 225 (!doDocComment || docfile) && |
226 (!doHdrGen || hdrfile)) | 226 (!doHdrGen || hdrfile)) |
227 return; | 227 return; |
250 fatal(); | 250 fatal(); |
251 } | 251 } |
252 | 252 |
253 // LDC | 253 // LDC |
254 // another safety check to make sure we don't overwrite previous output files | 254 // another safety check to make sure we don't overwrite previous output files |
255 check_and_add_output_file(this, objfile->name->str); | 255 if (!singleObj) |
256 check_and_add_output_file(this, objfile->name->str); | |
256 if (docfile) | 257 if (docfile) |
257 check_and_add_output_file(this, docfile->name->str); | 258 check_and_add_output_file(this, docfile->name->str); |
258 if (hdrfile) | 259 if (hdrfile) |
259 check_and_add_output_file(this, hdrfile->name->str); | 260 check_and_add_output_file(this, hdrfile->name->str); |
260 } | 261 } |