Skip to content
Snippets Groups Projects
Commit 18de37e4 authored by John Ericson's avatar John Ericson
Browse files

Move mmap in the runtime linker check to the RTS configure

`AC_DEFINE` should go there instead.
parent d1425af0
No related branches found
No related tags found
No related merge requests found
......@@ -1097,26 +1097,6 @@ if test "$use_large_address_space" = "yes" ; then
AC_DEFINE([USE_LARGE_ADDRESS_SPACE], [1], [Enable single heap address space support])
fi
dnl ** Use MMAP in the runtime linker?
dnl --------------------------------------------------------------
case ${TargetOS} in
linux|linux-android|freebsd|dragonfly|netbsd|openbsd|kfreebsdgnu|gnu|solaris2)
RtsLinkerUseMmap=1
;;
darwin|ios|watchos|tvos)
RtsLinkerUseMmap=1
;;
*)
# Windows (which doesn't have mmap) and everything else.
RtsLinkerUseMmap=0
;;
esac
AC_DEFINE_UNQUOTED([RTS_LINKER_USE_MMAP], [$RtsLinkerUseMmap],
[Use mmap in the runtime linker])
GHC_ADJUSTORS_METHOD([Target])
AC_SUBST([UseLibffiForAdjustors])
......
......@@ -33,6 +33,25 @@ GHC_CONVERT_PLATFORM_PARTS([host], [Host])
FPTOOLS_SET_PLATFORM_VARS([host], [Host])
FPTOOLS_SET_HASKELL_PLATFORM_VARS([Host])
dnl ** Use MMAP in the runtime linker?
dnl --------------------------------------------------------------
case ${HostOS} in
linux|linux-android|freebsd|dragonfly|netbsd|openbsd|kfreebsdgnu|gnu|solaris2)
RtsLinkerUseMmap=1
;;
darwin|ios|watchos|tvos)
RtsLinkerUseMmap=1
;;
*)
# Windows (which doesn't have mmap) and everything else.
RtsLinkerUseMmap=0
;;
esac
AC_DEFINE_UNQUOTED([RTS_LINKER_USE_MMAP], [$RtsLinkerUseMmap],
[Use mmap in the runtime linker])
dnl ** ARM outline atomics
dnl --------------------------------------------------------------
FP_ARM_OUTLINE_ATOMICS
......
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