Ticket #54996: Portfile.diff

File Portfile.diff, 1.6 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 7 years ago)
  • Portfile

    old new  
    145145    0001-Set-the-Mach-O-CPU-Subtype-to-ppc7400-when-targeting.patch \
    146146    0002-Define-EXC_MASK_CRASH-and-MACH_EXCEPTION_CODES-if-th.patch \
    147147    0003-MacPorts-Only-Don-t-embed-the-deployment-target-in-t.patch \
    148     0004-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch
     148    0004-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch \
     149    0005-Dont-build-LibFuzzer-pre-Lion-due-to-missing-__threa.patch
    149150
    150151if {${subport} eq "clang-${llvm_version}"} {
    151152    patchfiles-append \
     
    234235    -DFFI_INCLUDE_DIR=`pkg-config --cflags-only-I libffi | sed 's/-I//'` \
    235236    -DFFI_LIBRARY_DIR=${prefix}/lib
    236237
     238if {${os.major} <= 10} {
     239    # See https://trac.macports.org/ticket/54996
     240    configure.args-append \
     241        -DLLVM_USE_SANITIZE_COVERAGE=OFF
     242}
     243
    237244if {${subport} eq "llvm-${llvm_version}"} {
    238245    select.group        llvm
    239246    select.file         ${filespath}/mp-${subport}
     
    481488        set bin_filename [string map "${sub_prefix} ${prefix}" ${bin}]-${suffix}
    482489        set exec_path [string map "${destroot}${sub_prefix} ${sub_prefix}" ${bin}]
    483490
     491        if {[vercmp ${xcodeversion} 4.2] > 0} {
    484492        xinstall -m 755 "${filespath}/llvm-bin" "${bin_filename}"
     493        } else {
     494            # see https://trac.macports.org/ticket/54985
     495            xinstall -m 755 "${filespath}/llvm-bin-compat" "${bin_filename}"
     496        }
    485497        reinplace "s:EXEC_PATH:${exec_path}:" "${bin_filename}"
    486498    }
    487499