Changes between Version 70 and Version 71 of PortfileRecipes


Ignore:
Timestamp:
Aug 26, 2013, 7:22:59 AM (11 years ago)
Author:
jeremyhu (Jeremy Huddleston Sequoia)
Comment:

Show globs in the compiler.blacklist example and remove block that is no longer relevant with base 2.2

Legend:

Unmodified
Added
Removed
Modified
  • PortfileRecipes

    v70 v71  
    376376
    377377{{{
    378 compiler.blacklist llvm-gcc-4.2
     378compiler.blacklist *llvm-gcc-4.2
    379379}}}
    380380
     
    382382
    383383{{{
    384 compiler.blacklist clang
    385 }}}
    386 
    387 If your port works with neither clang nor llvm-gcc-4.2, use gcc-4.2; since on Xcode 4.2 and up (i.e. where the default compiler is clang) there is no included version of gcc-4.2, use apple-gcc-4.2 in that case. Use of this block should be considered a temporary stopgap measure. Please file a bug report with the upstream developers of the software so they can fix it to work with clang and llvm-gcc-4.2. Put a reference to the upstream bug report in the Portfile.
    388 
    389 {{{
    390 if {${configure.compiler} eq "llvm-gcc-4.2"} {
    391     configure.compiler gcc-4.2
    392 } elseif {${configure.compiler} eq "clang"} {
    393     depends_build-append port:apple-gcc42
    394     depends_skip_archcheck-append apple-gcc42
    395     configure.compiler apple-gcc-4.2
    396 }
    397 }}}
    398 
    399 This snippet is taken from [http://lists.macosforge.org/pipermail/macports-dev/2012-January/017515.html this message on macports-dev].
     384compiler.blacklist *clang*
     385}}}
     386
     387Note that the globs are used to match patterns in the name.  The first example above will also match macports-llvm-gcc-4.2, and the second example will also match macports-clang-*.
     388
     389If your port works with neither clang nor llvm-gcc-4.2, the fallback will be to gcc-4.2 (provided by the apple-gcc-4.2 port if it's not available).  It is becoming increasingly important that ports build successfully with clang since it has been the default compiler since Xcode 4.2, and Apple no longer supports the use of gcc.
     390
     391If your port fails to build with the most recent current versions of clang, please file bugs upstream to fix issues when building with clang, and reference these bug reports in the Portfile, so other developers can followup.
    400392
    401393== Providing compiler variants == #gcc