Przeglądaj źródła

* create normal object files, instead of using the internal "ar" writer in TInternalAssembler.writetreesmart in case the af_needar flag is set on an internal assembler

git-svn-id: trunk@30515 -
nickysn 10 lat temu
rodzic
commit
f66d8cfb7f
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      compiler/assemble.pas

+ 2 - 1
compiler/assemble.pas

@@ -1820,7 +1820,8 @@ Implementation
         place: tcutplace;
         ObjWriter : TObjectWriter;
       begin
-        if not(cs_asm_leave in current_settings.globalswitches) then
+        if not(cs_asm_leave in current_settings.globalswitches) and
+           not(af_needar in target_asm.flags) then
           ObjWriter:=TARObjectWriter.create(current_module.staticlibfilename)
         else
           ObjWriter:=TObjectwriter.create;