X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=8c33bb2e249df9e8d5c1bc4c4dffca8dfeaa845b;hb=aa0c0de94e25aa64139688f8e4c4ba51ddca6f54;hp=0502f11162bbeb590e89118bfc5b768496ae6458;hpb=c6d2c108a2c0f8b686dbae5f01171d9199ab7046;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index 0502f11..8c33bb2 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -177,6 +177,16 @@ else GhcEnableTablesNextToCode=YES endif +# Whether to use libffi for adjustors (foreign import "wrapper") or +# not. If we have built-in support (rts/Adjustor.c) then we use that, +# otherwise we fall back on libffi, which is slightly slower. +ArchHasAdjustorSupport=$(strip $(if $(findstring $(HostArch_CPP),i386 x86_64 alpha powerpc ia64,),YES,NO)) +ifeq "$(ArchHasAdjustorSupport)" "YES" +UseLibFFIForAdjustors=NO +else +UseLibFFIForAdjustors=YES +endif + # On Windows we normally want to make a relocatable bindist, to we # ignore flags like libdir ifeq "$(Windows)" "YES" @@ -195,25 +205,6 @@ BeConservative = NO BuildingParallel=$(subst mp,YES,$(filter mp,$(WAYS))) BuildingGranSim=$(subst mg,YES,$(filter mg,$(WAYS))) -# Interface file version (hi-boot files only) -# -# A GHC built with HscIfaceFileVersion=n will look for -# M.hi-boot-n, and only then for -# M.hi-boot. -# (It'll be happy with the latter if the former doesn't exist.) -# -# -# This variable is used ONLY for hi-boot files. Its only purpose is -# to allow you to have a single directory with multiple .hi-boot files -# for the same module, each corresponding to a different version of -# GHC. -# -# HscIfaceFileVersion is propagated to hsc via -# compiler/main/Config.hs, which is automatically generated by -# compiler/Makefile. - -HscIfaceFileVersion=6 - #------------------------------------------------------------------------------ # Options for Libraries