Changeset 95163 in webkit


Ignore:
Timestamp:
Sep 14, 2011 9:33:16 PM (13 years ago)
Author:
alexis.menard@openbossa.org
Message:

[Qt] Replace QT_GCC_X as they don't exist in Qt5 anymore.
https://bugs.webkit.org/show_bug.cgi?id=68114

Reviewed by Kenneth Rohde Christiansen.

.:

Replace QT_GCC_X variables, they have been removed in Qt5. It was
actually wrong to use them because they tell about which GCC version
Qt has been compiled, not the current version of GCC use to build webkit.
I use gcc -dumpversion to get it.

  • Source/WebKit.pri:

Source/JavaScriptCore:

Use the new GCC_X variables defined in WebKit.pri to replace
the usage of QT_GCC_X.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r95157 r95163  
     12011-09-14  Alexis Menard  <alexis.menard@openbossa.org>
     2
     3        [Qt] Replace QT_GCC_X as they don't exist in Qt5 anymore.
     4        https://bugs.webkit.org/show_bug.cgi?id=68114
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Replace QT_GCC_X variables, they have been removed in Qt5. It was
     9        actually wrong to use them because they tell about which GCC version
     10        Qt has been compiled, not the current version of GCC use to build webkit.
     11        I use gcc -dumpversion to get it.
     12
     13        * Source/WebKit.pri:
     14
    1152011-09-14  Ulan Degenbaev  <ulan@chromium.org>
    216
  • trunk/Source/JavaScriptCore/ChangeLog

    r95162 r95163  
     12011-09-14  Alexis Menard  <alexis.menard@openbossa.org>
     2
     3        [Qt] Replace QT_GCC_X as they don't exist in Qt5 anymore.
     4        https://bugs.webkit.org/show_bug.cgi?id=68114
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Use the new GCC_X variables defined in WebKit.pri to replace
     9        the usage of QT_GCC_X.
     10
     11        * JavaScriptCore.pro:
     12
    1132011-09-14  Sheriff Bot  <webkit.review.bot@gmail.com>
    214
  • trunk/Source/JavaScriptCore/JavaScriptCore.pro

    r95134 r95163  
    3434# Rules when JIT enabled (not disabled)
    3535!contains(DEFINES, ENABLE_JIT=0) {
    36     linux*-g++*:greaterThan(QT_GCC_MAJOR_VERSION,3):greaterThan(QT_GCC_MINOR_VERSION,0) {
     36    linux*-g++*:greaterThan(GCC_MAJOR_VERSION,3):greaterThan(GCC_MINOR_VERSION,0) {
    3737        QMAKE_CXXFLAGS += -fno-stack-protector
    3838        QMAKE_CFLAGS += -fno-stack-protector
     
    217217}
    218218
    219 lessThan(QT_GCC_MAJOR_VERSION, 5) {
     219lessThan(GCC_MAJOR_VERSION, 5) {
    220220    # GCC 4.5 and before
    221     lessThan(QT_GCC_MINOR_VERSION, 6) {
     221    lessThan(GCC_MINOR_VERSION, 6) {
    222222        # Disable C++0x mode in JSC for those who enabled it in their Qt's mkspec.
    223223        *-g++*:QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x
     
    225225
    226226    # GCC 4.6 and after.
    227     greaterThan(QT_GCC_MINOR_VERSION, 5) {
     227    greaterThan(GCC_MINOR_VERSION, 5) {
    228228        if (!contains(QMAKE_CXXFLAGS, -std=c++0x) && !contains(QMAKE_CXXFLAGS, -std=gnu++0x)) {
    229229            # We need to deactivate those warnings because some names conflicts with upcoming c++0x types (e.g.nullptr).
  • trunk/Source/WebKit.pri

    r94866 r95163  
    9696linux-g++* {
    9797    isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386): QMAKE_CXXFLAGS += -Werror
    98 
    99     greaterThan(QT_GCC_MAJOR_VERSION, 3):greaterThan(QT_GCC_MINOR_VERSION, 5) {
     98    GCC_VERSION = $$system(gcc -dumpversion)
     99    GCC_VERSION = $$split(GCC_VERSION, ".")
     100    GCC_MAJOR_VERSION = $$first(GCC_VERSION)
     101    GCC_MINOR_VERSION = $$member(GCC_VERSION, 1)
     102    greaterThan(GCC_MAJOR_VERSION, 3):greaterThan(GCC_MINOR_VERSION, 5) {
    100103        if (!contains(QMAKE_CXXFLAGS, -std=c++0x) && !contains(QMAKE_CXXFLAGS, -std=gnu++0x)) {
    101104            # We need to deactivate those warnings because some names conflicts with upcoming c++0x types (e.g.nullptr).
Note: See TracChangeset for help on using the changeset viewer.