Browse Source

- disabled CFI again for Darwin, it doesn't work there yet

git-svn-id: trunk@12911 -
Jonas Maebe 16 years ago
parent
commit
c90ecac667
1 changed files with 6 additions and 2 deletions
  1. 6 2
      compiler/pmodules.pas

+ 6 - 2
compiler/pmodules.pas

@@ -141,8 +141,12 @@ implementation
         { Call frame information }
         { Call frame information }
         { MWE: we write our own info, so dwarf asm support is not really needed }
         { MWE: we write our own info, so dwarf asm support is not really needed }
         { if (af_supports_dwarf in target_asm.flags) and }
         { if (af_supports_dwarf in target_asm.flags) and }
-        if (tf_needs_dwarf_cfi in target_info.flags) or
-           (paratargetdbg in [dbg_dwarf2, dbg_dwarf3]) then
+        { CFI is currently broken for Darwin }
+        if not(target_info.system in systems_darwin) and
+           (
+            (tf_needs_dwarf_cfi in target_info.flags) or
+            (paratargetdbg in [dbg_dwarf2, dbg_dwarf3])
+           ) then
           begin
           begin
             current_asmdata.asmlists[al_dwarf_frame].Free;
             current_asmdata.asmlists[al_dwarf_frame].Free;
             current_asmdata.asmlists[al_dwarf_frame] := TAsmList.create;
             current_asmdata.asmlists[al_dwarf_frame] := TAsmList.create;