Mercurial > projects > ldc
comparison gen/main.cpp @ 1415:bac3931b3de3
Fix a behavioral change accidentally introduced by the move to the LLVM
commandline system: `-output-(bc|ll|s)` used to disable generation of an object
file unless explicitly requested with `-output-o`. Now they do so again.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sat, 23 May 2009 20:57:22 +0200 |
parents | e5c5d354c649 |
children | f79971a45bee |
comparison
equal
deleted
inserted
replaced
1414:303e6422f785 | 1415:bac3931b3de3 |
---|---|
236 processVersions(versions, "version", | 236 processVersions(versions, "version", |
237 VersionCondition::setGlobalLevel, | 237 VersionCondition::setGlobalLevel, |
238 VersionCondition::addGlobalIdent); | 238 VersionCondition::addGlobalIdent); |
239 | 239 |
240 global.params.output_o = | 240 global.params.output_o = |
241 opts::output_o == cl::BOU_UNSET | 241 (opts::output_o == cl::BOU_UNSET |
242 && !(opts::output_bc || opts::output_ll || opts::output_s)) | |
242 ? OUTPUTFLAGdefault | 243 ? OUTPUTFLAGdefault |
243 : opts::output_o == cl::BOU_TRUE | 244 : opts::output_o == cl::BOU_TRUE |
244 ? OUTPUTFLAGset | 245 ? OUTPUTFLAGset |
245 : OUTPUTFLAGno; | 246 : OUTPUTFLAGno; |
246 global.params.output_bc = opts::output_bc ? OUTPUTFLAGset : OUTPUTFLAGno; | 247 global.params.output_bc = opts::output_bc ? OUTPUTFLAGset : OUTPUTFLAGno; |