Changeset 43691 in webkit for trunk/JavaScriptCore/Configurations


Ignore:
Timestamp:
May 14, 2009, 4:14:43 AM (16 years ago)
Author:
[email protected]
Message:

<rdar://problem/6681868> When building with Xcode 3.1.3 should be using gcc 4.2

Rubber-stamped by Darin Adler.

The meaning of XCODE_VERSION_ACTUAL is more sensible in newer versions of Xcode.
Update our logic to select the compiler version to use the more appropriate XCODE_VERSION_MINOR
if the version of Xcode supports it, and fall back to XCODE_VERSION_ACTUAL if not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/Configurations/Base.xcconfig

    r42674 r43691  
    8383SECTORDER_FLAGS = -sectorder __TEXT __text JavaScriptCore.order;
    8484
    85 GCC_VERSION = $(GCC_VERSION_$(XCODE_VERSION_ACTUAL));
     85// Use GCC 4.2 with Xcode 3.1, which includes GCC 4.2 but defaults to GCC 4.0.
     86// Note that Xcode versions as new as 3.1.2 use XCODE_VERSION_ACTUAL for the minor version
     87// number.  Newer versions of Xcode use XCODE_VERSION_MINOR for the minor version, and
     88// XCODE_VERSION_ACTUAL for the full version number.
     89GCC_VERSION = $(GCC_VERSION_$(XCODE_VERSION_MINOR));
     90GCC_VERSION_ = $(GCC_VERSION_$(XCODE_VERSION_ACTUAL));
    8691GCC_VERSION_0310 = 4.2;
    8792
Note: See TracChangeset for help on using the changeset viewer.