QNX: Enable pre-compiled header support for QNX

Change-Id: I6af69965b19c5d0d7a46de8000433bc5f1f2abcb
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
Sean Harmer 2012-08-24 15:14:20 +01:00 committed by Qt by Nokia
parent bf5e3247ae
commit bc80ee36f8
2 changed files with 6 additions and 1 deletions

View File

@ -27,7 +27,7 @@ EOF
rm -f header.pchi header.o source.o rm -f header.pchi header.o source.o
;; ;;
*g++*|c++) *g++*|c++|*qcc*)
case `"$COMPILER" -dumpversion 2>/dev/null` in case `"$COMPILER" -dumpversion 2>/dev/null` in
3.*) 3.*)
;; ;;

View File

@ -42,6 +42,11 @@ QMAKE_CXXFLAGS_APP += $$QMAKE_CFLAGS_APP
QMAKE_CXXFLAGS_YACC += $$QMAKE_CFLAGS_YACC QMAKE_CXXFLAGS_YACC += $$QMAKE_CFLAGS_YACC
QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden
QMAKE_CFLAGS_PRECOMPILE = -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
QMAKE_CFLAGS_USE_PRECOMPILE = -Wc,-include -Wc,${QMAKE_PCH_OUTPUT_BASE}
QMAKE_CXXFLAGS_PRECOMPILE = -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
QMAKE_LFLAGS += -lang-c++ QMAKE_LFLAGS += -lang-c++
QMAKE_LFLAGS_DEBUG += -lang-c++ QMAKE_LFLAGS_DEBUG += -lang-c++
QMAKE_LFLAGS_APP += -lang-c++ QMAKE_LFLAGS_APP += -lang-c++