Change -m* arguments to -*
This commit is contained in:
parent
5a0b183198
commit
0d6651f813
@ -30,33 +30,33 @@ void Arguments::parse(int argc, char** argv)
|
||||
command_line.add(input_Argument);
|
||||
|
||||
CreateValueArgument(output, "o", "output", "Output file.", "output.o");
|
||||
CreateValueArgument(march, "", "march", "Architecture to compile for.", "native");
|
||||
CreateValueArgument(mcpu, "", "mcpu", "CPU to compile for.", "generic");
|
||||
CreateValueArgument(msystem, "", "msystem", "Operating System to compile for.", "native");
|
||||
CreateValueArgument(arch, "", "arch", "Architecture to compile for.", "native");
|
||||
CreateValueArgument(cpu, "", "cpu", "CPU to compile for.", "generic");
|
||||
CreateValueArgument(system, "", "system", "Operating System to compile for.", "native");
|
||||
CreateValueArgument(entry, "e", "entry", "Name of entry function.", "main");
|
||||
|
||||
CreateFlagArgument(emit_llvm, "", "emit-llvm", "Emit LLVM IR instead of an object file.");
|
||||
CreateFlagArgument(omit_entry, "", "omit-entry", "Do not check for an entry point.");
|
||||
|
||||
#ifndef NO_BENCHMARKING
|
||||
CreateFlagArgument(mprofile, "", "mprofile", "Show execution times for functions.");
|
||||
CreateFlagArgument(profile, "", "profile", "Show execution times for functions.");
|
||||
#endif
|
||||
command_line.parse(argc, argv);
|
||||
|
||||
SaveValueArgument(output);
|
||||
SaveValueArgument(input);
|
||||
SaveValueArgument(march);
|
||||
SaveValueArgument(msystem);
|
||||
SaveValueArgument(mcpu);
|
||||
SaveValueArgument(arch);
|
||||
SaveValueArgument(system);
|
||||
SaveValueArgument(cpu);
|
||||
SaveValueArgument(entry);
|
||||
SaveFlagArgument(emit_llvm);
|
||||
SaveFlagArgument(omit_entry);
|
||||
|
||||
setTriple(values["march"], values["msystem"]);
|
||||
setTriple(values["arch"], values["system"]);
|
||||
|
||||
#ifndef NO_BENCHMARKING
|
||||
SaveFlagArgument(mprofile);
|
||||
if (flags["mprofile"]) __benchmark_impl::enable();
|
||||
SaveFlagArgument(profile);
|
||||
if (flags["profile"]) __benchmark_impl::enable();
|
||||
#endif
|
||||
}
|
||||
catch (TCLAP::ArgException& e)
|
||||
|
Loading…
Reference in New Issue
Block a user