From f4c3192d0a558cae80b1e601b64deb0c6ae3a0ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 21 Oct 2021 09:43:39 +0200 Subject: Main: Fixup --dump-extension-api after #54017 That removal was correct, but triggered a bug in our messy-as-heck main.cpp detection logic for editor/project manager/project/command line tool... Fixing this is for another day. --- main/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index 2a9446d4ed..f0bc51c10f 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -918,6 +918,10 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph cmdline_tool = true; dump_extension_api = true; print_line("Dumping Extension API"); + // Hack. Not needed but otherwise we end up detecting that this should + // run the project instead of a cmdline tool. + // Needs full refactoring to fix properly. + main_args.push_back(I->get()); } else if (I->get() == "--export" || I->get() == "--export-debug" || I->get() == "--export-pack") { // Export project // Actually handling is done in start(). -- cgit v1.2.3