瀏覽代碼

* 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 年之前
父節點
當前提交
c4d80a8a10
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/optdead.pas

+ 2 - 1
compiler/optdead.pas

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