Ver código fonte

* 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 anos atrás
pai
commit
f66d8cfb7f
1 arquivos alterados com 2 adições e 1 exclusões
  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;