From a954661d33f6b3e9ff468390d036670e232cdd1a Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 27 Mar 2021 17:33:02 +0900 Subject: [PATCH] Use "a.out" as the default output filename --- cmdline.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmdline.cc b/cmdline.cc index 0a522c7e..20b8da9a 100644 --- a/cmdline.cc +++ b/cmdline.cc @@ -464,6 +464,6 @@ void parse_nonpositional_args(std::span args, Fatal() << "-auxiliary may not be used without -shared"; } - if (config.output == "") - Fatal() << "-o option is missing"; + if (config.output.empty()) + config.output = "a.out"; }