Changeset 98048


Ignore:
Timestamp:
Sep 24, 2012, 5:07:37 AM (12 years ago)
Author:
jeremyhu@…
Message:

qt4-mac*: Build with clang

Location:
trunk/dports/aqua
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/qt4-mac-devel/Portfile

    r97300 r98048  
    168168# configure.compiler should therefore not be one of the MacPorts compilers.
    169169
    170 # does not work with clang, see #31076 .
    171 if {${configure.compiler} == "clang"} {
    172     configure.compiler llvm-gcc-4.2
     170# http://llvm.org/bugs/show_bug.cgi?id=8971, #30271, #31076, #31638
     171compiler.blacklist {macports-clang-2.9}
     172if {[vercmp $xcodeversion 4.3] < 0} {
     173    compiler.blacklist-append clang
    173174}
    174175
     
    250251    -fast                                                 \
    251252    -optimized-qmake                                      \
     253    -no-pch                                               \
    252254    -no-framework                                         \
    253255    -no-phonon                                            \
     
    291293        # retrieve the arch type(s) to use, in Qt-speak
    292294        configure.args-append -arch \"${qt_arch_types}\"
    293 
    294         # cannot use pre-compiled headers when compiling with more than 1
    295         # arch type (typically +universal) or for X11
    296         #if {[llength ${qt_arch_types}] != 1 || [variant_isset x11]}
    297         if {[llength ${qt_arch_types}] != 1} {
    298             configure.args-append -no-pch
    299         } else {
    300             configure.args-append -pch
    301         }
    302295
    303296        # check to see if not compiling for the native machine hardware
  • trunk/dports/aqua/qt4-mac/Portfile

    r97950 r98048  
    335335# configure.compiler should therefore not be one of the MacPorts compilers.
    336336
    337 # does not work with clang, see #30271 and #31638 .
    338 if {${configure.compiler} == "clang"} {
    339     configure.compiler llvm-gcc-4.2
     337# http://llvm.org/bugs/show_bug.cgi?id=8971, #30271, #31076, #31638
     338compiler.blacklist {macports-clang-2.9}
     339if {[vercmp $xcodeversion 4.3] < 0} {
     340    compiler.blacklist-append clang
    340341}
    341342
     
    421422    -fast                                                 \
    422423    -optimized-qmake                                      \
     424    -no-pch                                               \
    423425    -framework                                            \
    424426    -no-phonon                                            \
     
    471473
    472474    #if {[llength ${qt_arch_types}] != 1 || [variant_isset x11]}
    473 
    474     if {[llength ${qt_arch_types}] != 1} {
    475         configure.args-append -no-pch
    476     } else {
    477         configure.args-append -pch
    478     }
    479475
    480476    # check to see if not compiling for the native machine hardware
Note: See TracChangeset for help on using the changeset viewer.