Use objdump instead of nm to derive constants on OpenBSD
authorAustin Seipp <austin@well-typed.com>
Tue, 21 Oct 2014 19:58:21 +0000 (14:58 -0500)
committerAustin Seipp <austin@well-typed.com>
Tue, 21 Oct 2014 19:58:21 +0000 (14:58 -0500)
commit2cc206505d248ac8c706aa85342a895857c9f091
tree1fa82c8dde105793f6a18f7f9ee4df4591e33665
parent3687089fd55e3c8d2710da5c9fb4b53c6c84e0cf
Use objdump instead of nm to derive constants on OpenBSD

Summary: OpenBSD's nm doesn't support the -P option and there appears to be no other way to get the desired information from it.

Reviewers: kgardas, #ghc, austin

Reviewed By: kgardas, #ghc, austin

Subscribers: austin, ggreif

Projects: #ghc

Differential Revision: https://phabricator.haskell.org/D332

GHC Trac Issues: #9549
utils/deriveConstants/DeriveConstants.hs