Browse Source

* Added --cpu and --os command-line options

git-svn-id: trunk@16045 -
joost 15 years ago
parent
commit
b5fadc3414
1 changed files with 6 additions and 0 deletions
  1. 6 0
      utils/fppkg/fppkg.pp

+ 6 - 0
utils/fppkg/fppkg.pp

@@ -181,6 +181,8 @@ begin
   Writeln('  -n                 Do not read the default configuration files');
   Writeln('  -p --prefix=value  Specify the prefix');
   Writeln('  --compiler=value   Specify the compiler-executable');
+  Writeln('  --cpu=value        Specify the target cpu to compile for');
+  Writeln('  --os=value         Specify the target operating system to compile for');
   Writeln('Actions:');
   Writeln('  update            Update packages list');
   Writeln('  list              List available and installed packages');
@@ -310,6 +312,10 @@ begin
           CompilerOptions.Compiler := OptionArg(I);
           FPMakeCompilerOptions.Compiler := OptionArg(I);
         end
+      else if CheckOption(I,'','os') then
+        CompilerOptions.CompilerOS := StringToOS(OptionArg(I))
+      else if CheckOption(I,'','cpu') then
+        CompilerOptions.CompilerCPU := StringToCPU(OptionArg(I))
       else if CheckOption(I,'h','help') then
         begin
           ShowUsage;