Changeset 131258


Ignore:
Timestamp:
Jan 7, 2015, 8:02:00 PM (4 years ago)
Author:
cal@…
Message:

ghc-bootstrap: Blacklist older clang in order to fix ghc on older systems

Location:
trunk/dports/lang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/ghc-bootstrap/Portfile

    r131199 r131258  
    33
    44PortSystem          1.0
     5PortGroup           compiler_blacklist_versions 1.0
    56
    67name                ghc-bootstrap
     
    89# Note: 7.6.3 doesn't have a i386 darwin version at http://www.haskell.org/ghc/dist/7.6.3
    910version             7.6.2
     11revision            1
    1012categories          lang haskell
    1113maintainers         gmail.com:kitchen.andy cal openmaintainer
     
    3840    xinstall -m 644 ${filespath}/clang-wrapper ${workpath}/clang-wrapper
    3941}
     42
     43# Compilation (of the final non-bootstrap GHC, which uses the C compiler
     44# configured in this port) fails with older versions of clang. clang-4.1 from
     45# Xcode 4.5 is too old, clang-5.1 from from Xcode 5.1 works. I do not have
     46# any data points in between, so I'm blacklisting everything lower than 5.1.
     47# If you want to test the versions in between, be my guest.
     48# Also avoid LLVM GCC 4.2 and GCC 4.2, which are before MacPorts' clang 3.4
     49# in the fallback list on some systems.
     50compiler.blacklist-append \
     51                    llvm-gcc-4.2 \
     52                    gcc-4.2 \
     53                    {clang < 503.0.38} \
     54                    macports-clang-3.3
    4055
    4156configure.pre_args  --prefix=${prefix}/share/ghc-bootstrap
  • trunk/dports/lang/ghc/Portfile

    r131257 r131258  
    8585# Also avoid LLVM GCC 4.2 and GCC 4.2, which are before MacPorts' clang 3.4 in
    8686# the fallback list on some systems.
     87# NOTE that it is actually the C compiler used in ghc-bootstrap that is
     88# relevant here. This code block is duplicated in this port to avoid
     89# inconsistencies.
    8790compiler.blacklist-append \
    8891                llvm-gcc-4.2 \
Note: See TracChangeset for help on using the changeset viewer.