Ticket #49979: patch-xcode-7.2.diff

File patch-xcode-7.2.diff, 1.4 KB (added by ivangeloff@…, 4 years ago)

Patch to "support" Xcode 7.2

  • build.sh

    old new  
    117117declare M_XCODE71=""
    118118declare M_XCODE71_VERSION=7.1
    119119readonly M_XCODE71_COMPILER="com.apple.compilers.llvm.clang.1_0"
     120declare M_XCODE72=""
     121declare M_XCODE72_VERSION=7.2
     122readonly M_XCODE72_COMPILER="com.apple.compilers.llvm.clang.1_0"
    120123
    121124declare M_ACTUAL_PLATFORM=""
    122125declare M_PLATFORMS=""
     
    26522655                    M_XCODE71_VERSION=$m_xcode_version
    26532656                fi
    26542657                ;;
     2658            7.2*)
     2659                m_version_compare $M_XCODE72_VERSION $m_xcode_version
     2660                if [[ $? != 2 ]]
     2661                then
     2662                    M_XCODE72="$m_xcode_root"
     2663                    M_XCODE72_VERSION=$m_xcode_version
     2664                fi
     2665                ;;
    26552666            *)
    26562667                m_log "skip unsupported Xcode version in '$m_xcode_root'."
    26572668                ;;
     
    29292940        M_SDK_1011_COMPILER="$M_XCODE71_COMPILER"
    29302941        m_platform_realistic_add "10.11"
    29312942    fi
     2943    if [[ -n "$M_XCODE72" ]]
     2944    then
     2945        m_xcode_latest="$M_XCODE72"
     2946
     2947        M_SDK_1011="$M_XCODE72/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk"
     2948        M_SDK_1011_XCODE="$M_XCODE72"
     2949        M_SDK_1011_COMPILER="$M_XCODE72_COMPILER"
     2950        m_platform_realistic_add "10.11"
     2951    fi
    29322952
    29332953    m_read_input "$@"
    29342954