diff --git a/gen/main.cpp b/gen/main.cpp index a2797bd1..9d034947 100644 --- a/gen/main.cpp +++ b/gen/main.cpp @@ -359,7 +359,7 @@ int main(int argc, char** argv) mArch = llvm::TargetMachineRegistry::getClosestStaticTargetForModule(mod, Err); if (mArch == 0) { - error("failed to auto-select target '%s', please use the -march option"); + error("failed to auto-select target: %s, please use the -march option", Err.c_str()); fatal(); } }