Skip to content
Snippets Groups Projects
Commit be4cca56 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel :man_dancing:
Browse files

Disable Ar.wipeMetadata for AIX

AIX uses its own `ar` format variant (with a different header),
which causes Cabal to abort with

  Distribution.Simple.Program.Ar.wipeMetadata: Bad global header

This patch simply disables this non-essential operation for AIX.
parent 1578c4b6
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,8 @@ createArLibArchive verbosity lbi targetPath files = do
| inv <- multiStageProgramInvocation
simple (initial, middle, final) files ]
unless (hostArch == Arm) $ -- See #1537
unless (hostArch == Arm -- See #1537
|| hostOS == AIX) $ -- AIX uses its own "ar" format variant
wipeMetadata tmpPath
equal <- filesEqual tmpPath targetPath
unless equal $ renameFile tmpPath targetPath
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment