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);
|
command_line.add(input_Argument);
|
||||||
|
|
||||||
CreateValueArgument(output, "o", "output", "Output file.", "output.o");
|
CreateValueArgument(output, "o", "output", "Output file.", "output.o");
|
||||||
CreateValueArgument(march, "", "march", "Architecture to compile for.", "native");
|
CreateValueArgument(arch, "", "arch", "Architecture to compile for.", "native");
|
||||||
CreateValueArgument(mcpu, "", "mcpu", "CPU to compile for.", "generic");
|
CreateValueArgument(cpu, "", "cpu", "CPU to compile for.", "generic");
|
||||||
CreateValueArgument(msystem, "", "msystem", "Operating System to compile for.", "native");
|
CreateValueArgument(system, "", "system", "Operating System to compile for.", "native");
|
||||||
CreateValueArgument(entry, "e", "entry", "Name of entry function.", "main");
|
CreateValueArgument(entry, "e", "entry", "Name of entry function.", "main");
|
||||||
|
|
||||||
CreateFlagArgument(emit_llvm, "", "emit-llvm", "Emit LLVM IR instead of an object file.");
|
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.");
|
CreateFlagArgument(omit_entry, "", "omit-entry", "Do not check for an entry point.");
|
||||||
|
|
||||||
#ifndef NO_BENCHMARKING
|
#ifndef NO_BENCHMARKING
|
||||||
CreateFlagArgument(mprofile, "", "mprofile", "Show execution times for functions.");
|
CreateFlagArgument(profile, "", "profile", "Show execution times for functions.");
|
||||||
#endif
|
#endif
|
||||||
command_line.parse(argc, argv);
|
command_line.parse(argc, argv);
|
||||||
|
|
||||||
SaveValueArgument(output);
|
SaveValueArgument(output);
|
||||||
SaveValueArgument(input);
|
SaveValueArgument(input);
|
||||||
SaveValueArgument(march);
|
SaveValueArgument(arch);
|
||||||
SaveValueArgument(msystem);
|
SaveValueArgument(system);
|
||||||
SaveValueArgument(mcpu);
|
SaveValueArgument(cpu);
|
||||||
SaveValueArgument(entry);
|
SaveValueArgument(entry);
|
||||||
SaveFlagArgument(emit_llvm);
|
SaveFlagArgument(emit_llvm);
|
||||||
SaveFlagArgument(omit_entry);
|
SaveFlagArgument(omit_entry);
|
||||||
|
|
||||||
setTriple(values["march"], values["msystem"]);
|
setTriple(values["arch"], values["system"]);
|
||||||
|
|
||||||
#ifndef NO_BENCHMARKING
|
#ifndef NO_BENCHMARKING
|
||||||
SaveFlagArgument(mprofile);
|
SaveFlagArgument(profile);
|
||||||
if (flags["mprofile"]) __benchmark_impl::enable();
|
if (flags["profile"]) __benchmark_impl::enable();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
catch (TCLAP::ArgException& e)
|
catch (TCLAP::ArgException& e)
|
||||||
|
Loading…
Reference in New Issue
Block a user