Commit 45ad0c39 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

Ensure that RTS cabal file reflects dependency on libnuma

Test Plan: Validate with Hadrian and `libnuma` support

Reviewers: snowleopard, hvr, erikd, simonmar

Subscribers: izgzhen, alpmestan, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4616
parent 9dbf66d7
...@@ -1258,6 +1258,12 @@ if test "$ac_cv_header_numa_h$ac_cv_header_numaif_h" = "yesyes" ; then ...@@ -1258,6 +1258,12 @@ if test "$ac_cv_header_numa_h$ac_cv_header_numaif_h" = "yesyes" ; then
AC_CHECK_LIB(numa, numa_available,HaveLibNuma=1) AC_CHECK_LIB(numa, numa_available,HaveLibNuma=1)
fi fi
AC_DEFINE_UNQUOTED([HAVE_LIBNUMA], [$HaveLibNuma], [Define to 1 if you have libnuma]) AC_DEFINE_UNQUOTED([HAVE_LIBNUMA], [$HaveLibNuma], [Define to 1 if you have libnuma])
if test $HaveLibNuma = "YES" ; then
AC_SUBST([CabalHaveLibNuma],[True])
else
AC_SUBST([CabalHaveLibNuma],[False])
fi
dnl ** Documentation dnl ** Documentation
dnl -------------------------------------------------------------- dnl --------------------------------------------------------------
......
...@@ -20,6 +20,8 @@ flag mingwex ...@@ -20,6 +20,8 @@ flag mingwex
default: @CabalMingwex@ default: @CabalMingwex@
flag libdw flag libdw
default: @CabalHaveLibdw@ default: @CabalHaveLibdw@
flag libnuma
default: @CabalHaveLibNuma@
flag 64bit flag 64bit
default: @Cabal64bit@ default: @Cabal64bit@
flag leading-underscore flag leading-underscore
...@@ -88,6 +90,8 @@ library ...@@ -88,6 +90,8 @@ library
if flag(libdw) if flag(libdw)
-- for backtraces -- for backtraces
extra-libraries: elf dw extra-libraries: elf dw
if flag(libnuma)
extra-libraries: numa
if !flag(smp) if !flag(smp)
cpp-options: -DNOSMP cpp-options: -DNOSMP
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment