Browse Source

* only try to use objdump to extract symbol liveness information if the
target OS is Linux, since it's not supported on other platforms for that
purpose

git-svn-id: trunk@20739 -

Jonas Maebe 13 years ago
parent
commit
c4d80a8a10
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/optdead.pas

+ 2 - 1
compiler/optdead.pas

@@ -351,7 +351,8 @@ const
       { regular nm }
       { regular nm }
       if not symbolprogfound then
       if not symbolprogfound then
         symbolprogfound:=findutil('nm',nmfullname,symbolprogfullpath);
         symbolprogfound:=findutil('nm',nmfullname,symbolprogfullpath);
-      if not symbolprogfound then
+      if not symbolprogfound and
+         (target_info.system in systems_linux) then
         begin
         begin
           { try objdump }
           { try objdump }
           symbolprogfound:=findutil('objdump',objdumpfullname,symbolprogfullpath);
           symbolprogfound:=findutil('objdump',objdumpfullname,symbolprogfullpath);