diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-07-11 18:40:31 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-07-12 08:55:00 -0400 |
commit | 60ec8f74d32a9976ac8ddf6fd366218283fcac3e (patch) | |
tree | 4e29c75a7c06b19ea187cd9f6ba81b5b01788fc8 /configure.ac | |
parent | 1ee49cb11c7ad1af20c117a5395df96ded9a729f (diff) | |
download | haskell-60ec8f74d32a9976ac8ddf6fd366218283fcac3e.tar.gz |
distrib/configure: Fail if we can't detect machine's word size
This is a sure sign that something is terribly wrong.
We also now verify that the word size that the binary distribution
expects matches the word size produced by the local target toolchain.
Finally we rename WordSize to TargetWordSize, since non-host/target
qualified quantities are terribly confusing.
Reviewers: austin, hvr, Phyx
Reviewed By: Phyx
Subscribers: Phyx, rwbarton, thomie, erikd
Differential Revision: https://phabricator.haskell.org/D3711
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index c31deba833..043dea8b0a 100644 --- a/configure.ac +++ b/configure.ac @@ -875,8 +875,8 @@ FP_CHECK_SIZEOF_AND_ALIGNMENT(uint64_t) dnl for use in settings.in -WordSize=$ac_cv_sizeof_void_p -AC_SUBST(WordSize) +TargetWordSize=$ac_cv_sizeof_void_p +AC_SUBST(TargetWordSize) FP_CHECK_FUNC([WinExec], [@%:@include <windows.h>], [WinExec("",0)]) |