Browse Source

pass new asm extra opt using -ao option

git-svn-id: trunk@26538 -
pierre 11 years ago
parent
commit
e9c0484b3c
1 changed files with 7 additions and 0 deletions
  1. 7 0
      compiler/options.pas

+ 7 - 0
compiler/options.pas

@@ -779,6 +779,13 @@ begin
                       include(init_settings.globalswitches,cs_asm_tempalloc);
                       include(init_settings.globalswitches,cs_asm_tempalloc);
                     'n' :
                     'n' :
                       include(init_settings.globalswitches,cs_asm_nodes);
                       include(init_settings.globalswitches,cs_asm_nodes);
+                    { -ao option must be the last, everything behind it is passed directly to
+                      external assembler, it is ignored if internal assembler is used. }
+                    'o' :
+                      begin
+                        asmextraopt:=copy(more,j+1,length(more)-j);
+                        break;
+                      end;
                     'p' :
                     'p' :
                       begin
                       begin
                         exclude(init_settings.globalswitches,cs_asm_leave);
                         exclude(init_settings.globalswitches,cs_asm_leave);