Mercurial > projects > ldc
comparison gen/main.cpp @ 997:4f12ec3216cf
Missing %s error param in main.cpp
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Thu, 26 Feb 2009 15:51:19 +0100 |
parents | 420ef073448d |
children | 2b6c2e961f25 |
comparison
equal
deleted
inserted
replaced
996:6e7dc3caccdd | 997:4f12ec3216cf |
---|---|
357 { | 357 { |
358 std::string Err; | 358 std::string Err; |
359 mArch = llvm::TargetMachineRegistry::getClosestStaticTargetForModule(mod, Err); | 359 mArch = llvm::TargetMachineRegistry::getClosestStaticTargetForModule(mod, Err); |
360 if (mArch == 0) | 360 if (mArch == 0) |
361 { | 361 { |
362 error("failed to auto-select target '%s', please use the -march option"); | 362 error("failed to auto-select target: %s, please use the -march option", Err.c_str()); |
363 fatal(); | 363 fatal(); |
364 } | 364 } |
365 } | 365 } |
366 | 366 |
367 // Package up features to be passed to target/subtarget | 367 // Package up features to be passed to target/subtarget |