[commit: packages/directory] master: Inherit C compiler from Cabal (ec9e1af)

git at git.haskell.org git at git.haskell.org
Fri Dec 18 09:52:20 UTC 2015


Repository : ssh://git@git.haskell.org/directory

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/ec9e1af1d11c311ffcc0c19185f51273590d049f/directory

>---------------------------------------------------------------

commit ec9e1af1d11c311ffcc0c19185f51273590d049f
Author: Phil Ruffwind <rf at rufflewind.com>
Date:   Thu Aug 20 17:49:08 2015 -0400

    Inherit C compiler from Cabal
    
    Cabal passes --with-gcc and --with-compiler to the configure script,
    which used to be ignored, causing warnings.  The configure script now
    accepts both, although --with-compiler currently has no effect.


>---------------------------------------------------------------

ec9e1af1d11c311ffcc0c19185f51273590d049f
 configure.ac | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/configure.ac b/configure.ac
index ebea785..a9dbd12 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,6 +8,14 @@ AC_CONFIG_HEADERS([include/HsDirectoryConfig.h])
 AC_ARG_WITH([cc],
             [C compiler],
             [CC=$withval])
+# inherit the C compiler from Cabal
+AC_ARG_WITH([gcc],
+            [C compiler],
+            [CC=$withval])
+# avoid warnings when run via Cabal
+AC_ARG_WITH([compiler],
+            [GHC compiler],
+            [])
 AC_PROG_CC()
 
 # check for specific header (.h) files that we are interested in



More information about the ghc-commits mailing list