QNX is built with the qcc variant of GCC, which doesn't support -dumpversion.
Created attachment 122460 [details] Patch
Comment on attachment 122460 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=122460&action=review > Source/cmake/WebKitHelpers.cmake:15 > + EXEC_PROGRAM("${CMAKE_CXX_COMPILER} -E -Wp,-dM - < /dev/null | grep __VERSION__ | sed -e 's/^[^\"]*\"//' -e 's/\".*$//'" OUTPUT_VARIABLE COMPILER_VERSION) Nice trick. I'd grep for '^#define __VERSION__ ', in the event that '__VERSION__' is present in some other predefined macro. Also, since this part of the code is just interested in the compiler version numbers anyway, I'd use the more readable "grep -E -o '[0-9]+\.[0-9]+\.?[0-9]+?'" instead of that sed command. This have the added benefit of detecting gcc version as "4.6.2" even if the returned string is "4.6.2 20111223 (prerelease)" (or similar), which is important here as this is used to enable/disable flags to workaround compiler bugs.
Created attachment 122491 [details] Patch
Comment on attachment 122491 [details] Patch LGTM.
Comment on attachment 122491 [details] Patch Clearing flags on attachment: 122491 Committed r105014: <http://trac.webkit.org/changeset/105014>
All reviewed patches have been landed. Closing bug.