RESOLVED FIXED68114
[Qt] Replace QT_GCC_X as they don't exist in Qt5 anymore.
https://bugs.webkit.org/show_bug.cgi?id=68114
Summary [Qt] Replace QT_GCC_X as they don't exist in Qt5 anymore.
Alexis Menard (darktears)
Reported 2011-09-14 14:03:47 PDT
[Qt] Replace QT_GCC_X as they don't exist in Qt5 anymore.
Attachments
Patch (3.79 KB, patch)
2011-09-14 14:13 PDT, Alexis Menard (darktears)
no flags
Alexis Menard (darktears)
Comment 1 2011-09-14 14:13:44 PDT
Kenneth Rohde Christiansen
Comment 2 2011-09-14 14:54:30 PDT
Comment on attachment 107392 [details] Patch Ok, I trust you on this one
WebKit Review Bot
Comment 3 2011-09-14 21:32:23 PDT
Comment on attachment 107392 [details] Patch Clearing flags on attachment: 107392 Committed r95163: <http://trac.webkit.org/changeset/95163>
WebKit Review Bot
Comment 4 2011-09-14 21:32:28 PDT
All reviewed patches have been landed. Closing bug.
Simon Hausmann
Comment 5 2011-09-15 03:24:46 PDT
Comment on attachment 107392 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=107392&action=review > ChangeLog:3 > + [Qt] Replace QT_GCC_X as they don't exist in Qt5 anymore. Hang on, I think this was a mistake. Commit 7493ee1c44a16dc3b155a5bf3ed7ca966a71072a in qtbase accidentally removed these qmake variables. > Source/WebKit.pri:99 > + GCC_VERSION = $$system(gcc -dumpversion) > + GCC_VERSION = $$split(GCC_VERSION, ".") This seems wrong to me in the context of cross compilation.
Simon Hausmann
Comment 6 2011-09-15 03:32:39 PDT
I submitted http://paste.ubuntu.com/689876/ for review and inclusion into qtbase. Once that change is in, then I think we should back out r95163.
Alexis Menard (darktears)
Comment 7 2011-09-15 05:08:27 PDT
(In reply to comment #6) > I submitted http://paste.ubuntu.com/689876/ for review and inclusion into qtbase. Once that change is in, then I think we should back out r95163. I tried to get brad with no success. Btw his patch was submitted reviewed by himself :D. Still it is semantically wrong, QT_GCC_X tells you which compiler version Qt was built, not the one you are actually building. I haven't though about the context of cross compilation can we get the compiler path in qmake? I mean the one that will be used to compile so I can invoke that variable rather than "gcc"?
Simon Hausmann
Comment 8 2011-09-15 05:27:28 PDT
(In reply to comment #7) > (In reply to comment #6) > > I submitted http://paste.ubuntu.com/689876/ for review and inclusion into qtbase. Once that change is in, then I think we should back out r95163. > > I tried to get brad with no success. Btw his patch was submitted reviewed by himself :D. > > Still it is semantically wrong, QT_GCC_X tells you which compiler version Qt was built, not the one you are actually building. I think it is correct, because qmake doesn't really support using one compiler for Qt and another one for apps. There's only host compilers for some host tools in Qt and then _the_ target compiler. Differently put: I don't think we should bother about any other setups :) > I haven't though about the context of cross compilation can we get the compiler path in qmake? I mean the one that will be used to compile so I can invoke that variable rather than "gcc"? QMAKE_CC and QMAKE_CXX would be correct. But you'd have to duplicate what configure is doing (check if it's gcc, distinguish between major and minor releases in the output). Is it really worth it? :)
Simon Hausmann
Comment 9 2011-09-15 10:55:13 PDT
Note You need to log in before you can comment on or make changes to this bug.