a73fdd1555
PCRE 10.40 requires C99 now. While all GHS compiler versions we support in Qt 6 default to C99, GHS v2016.5.4, which we use in Qt 5.15, still defaults to C89, so set QMAKE_CFLAGS_C99 for that compiler. It doesn't hurt in Qt 6, but enables the updated PCRE in Qt 5.15. Pick-to: 6.3 6.2 5.15 Change-Id: I0a2d3254f80136210289a415ede7c2409b07af9b Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Kimmo Ollila <kimmo.ollila@qt.io>
42 lines
1.8 KiB
Plaintext
42 lines
1.8 KiB
Plaintext
#
|
|
# This file is used as a basis for the following compilers:
|
|
#
|
|
# - The Green Hills Software compiler
|
|
#
|
|
|
|
QMAKE_COMPILER = ghs
|
|
|
|
QMAKE_CFLAGS += --signed_fields --no_commons --diag_suppress=1,82,228,236,381,611,961,997,1795,1974
|
|
QMAKE_CFLAGS_DEPS += -MD
|
|
QMAKE_CFLAGS_RELEASE += -Ospeed -Olink -Omax -no_uvfd
|
|
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_RELEASE -g
|
|
QMAKE_CFLAGS_DEBUG += -g -Omaxdebug
|
|
QMAKE_CFLAGS_SHLIB +=
|
|
QMAKE_CFLAGS_STATIC_LIB +=
|
|
QMAKE_CFLAGS_APP +=
|
|
QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses
|
|
QMAKE_CFLAGS_HIDESYMS +=
|
|
|
|
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS --no_implicit_include --link_once_templates -non_shared --new_outside_of_constructor
|
|
QMAKE_CXXFLAGS_DEPS += $$QMAKE_CFLAGS_DEPS
|
|
QMAKE_CXXFLAGS_WARN_ON += $$QMAKE_CFLAGS_WARN_ON
|
|
QMAKE_CXXFLAGS_WARN_OFF += $$QMAKE_CFLAGS_WARN_OFF
|
|
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_RELEASE
|
|
QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
|
|
QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_DEBUG
|
|
QMAKE_CXXFLAGS_SHLIB += $$QMAKE_CFLAGS_SHLIB
|
|
QMAKE_CXXFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_STATIC_LIB
|
|
QMAKE_CXXFLAGS_APP += $$QMAKE_CFLAGS_APP
|
|
QMAKE_CXXFLAGS_YACC += $$QMAKE_CFLAGS_YACC
|
|
QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS
|
|
QMAKE_CFLAGS_C99 = -std=c99
|
|
QMAKE_CXXFLAGS_CXX11 += --c++11 --thread_local_storage
|
|
QMAKE_CXXFLAGS_EXCEPTIONS_ON += --exceptions
|
|
|
|
QMAKE_LFLAGS += --signed_fields --no_commons --no_implicit_include --link_once_templates -non_shared --new_outside_of_constructor
|
|
QMAKE_LFLAGS_DEBUG += -g -Omaxdebug
|
|
QMAKE_LFLAGS_RELEASE += -Ospeed -Olink -Omax -no_uvfd
|
|
QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_LFLAGS_RELEASE -g
|
|
QMAKE_LFLAGS_CXX11 += --c++11 --thread_local_storage
|
|
QMAKE_LFLAGS_EXCEPTIONS_ON += --exceptions
|