Lines Matching +full:panda +full:- +full:options
2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
20 #include "runtime/include/method-inl.h"
47 namespace panda { namespace
65 if (sigemptyset(&set) == -1) { in BlockSignals()
87 void PrintHelp(const panda::PandArgParser &pa_parser) in PrintHelp()
91 << "panda" in PrintHelp()
92 << " [OPTIONS] [file] [entrypoint] -- [arguments]" << std::endl; in PrintHelp()
98 bool PrepareArguments(panda::PandArgParser *pa_parser, const RuntimeOptions &runtime_options, in PrepareArguments()
99 … const panda::PandArg<std::string> &file, const panda::PandArg<std::string> &entrypoint, in PrepareArguments()
100 const panda::PandArg<bool> &help, int argc, const char **argv) in PrepareArguments()
106 if (!pa_parser->Parse(argc, argv)) { in PrepareArguments()
132 auto compiler_options_err = compiler::options.Validate(); in PrepareArguments()
146 base_options::Options base_options(sp[0]); in Main()
147 panda::PandArgParser pa_parser; in Main()
149 panda::PandArg<bool> help("help", false, "Print this message and exit"); in Main()
150 panda::PandArg<bool> options("options", false, "Print compiler and runtime options"); in Main() local
152 panda::PandArg<std::string> file("file", "", "path to pandafile"); in Main()
153 …panda::PandArg<std::string> entrypoint("entrypoint", "", "full name of entrypoint function or meth… in Main()
157 compiler::options.AddOptions(&pa_parser); in Main()
160 pa_parser.Add(&options); in Main()
166 if (!panda::PrepareArguments(&pa_parser, runtime_options, file, entrypoint, help, argc, argv)) { in Main()
170 compiler::options.AdjustCpuFeatures(false); in Main()
179 panda::compiler::CompilerLogger::SetComponents(panda::compiler::options.GetCompilerLog()); in Main()
180 if (compiler::options.IsCompilerEnableEvents()) { in Main()
181 panda::compiler::EventWriter::Init(panda::compiler::options.GetCompilerEventsPath()); in Main()
202 return -1; in Main()
207 if (options.GetValue()) { in Main()
219 …verifier::ThreadPool::GetCache()->FastAPI().ProcessFiles(runtime.GetClassLinker()->GetBootPandaFil… in Main()
224 …std::cerr << "Cannot execute panda file '" << file_name << "' with entry '" << entry << "'" << std… in Main()
225 ret = -1; in Main()
238 return -1; in Main()
243 } // namespace panda
247 return panda::Main(argc, argv); in main()