Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/5.8' into 5.9
Browse files Browse the repository at this point in the history
Conflicts:
	configure.json
	mkspecs/win32-icc/qmake.conf

Change-Id: Ibf40546b024d644c7d9ed490bee15b82597f4d3f
  • Loading branch information
liangqi committed Feb 8, 2017
2 parents 0c50edb + b6bf2a3 commit dd75601
Show file tree
Hide file tree
Showing 129 changed files with 3,242 additions and 2,027 deletions.
45 changes: 0 additions & 45 deletions config.tests/unix/mips_dsp/mips_dsp.cpp

This file was deleted.

2 changes: 0 additions & 2 deletions config.tests/unix/mips_dsp/mips_dsp.pro

This file was deleted.

47 changes: 0 additions & 47 deletions config.tests/unix/mips_dspr2/mips_dspr2.cpp

This file was deleted.

2 changes: 0 additions & 2 deletions config.tests/unix/mips_dspr2/mips_dspr2.pro

This file was deleted.

21 changes: 9 additions & 12 deletions configure.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"detectPkgConfig": [ "cross_compile", "machineTuple" ],
"library": [ "pkg-config" ],
"getPkgConfigVariable": [ "pkg-config" ],
"neon": [ "architecture" ]
"subarch": [ "architecture" ]
},

"testTypeAliases": {
Expand Down Expand Up @@ -321,10 +321,6 @@
"type": "compile",
"test": "common/avx"
},
"avx_apple_clang": {
"label": "bugfree AVX support in compiler",
"type": "avx_test_apple_clang"
},
"avx2": {
"label": "AVX2 instructions",
"type": "compile",
Expand Down Expand Up @@ -386,17 +382,18 @@
},
"mips_dsp": {
"label": "MIPS DSP instructions",
"type": "compile",
"test": "unix/mips_dsp"
"type": "subarch",
"subarch": "dsp"
},
"mips_dspr2": {
"label": "MIPS DSPr2 instructions",
"type": "compile",
"test": "common/mips_dspr2"
"type": "subarch",
"subarch": "dspr2"
},
"neon": {
"label": "NEON instructions",
"type": "neon"
"type": "subarch",
"subarch": "neon"
},

"mremap": {
Expand Down Expand Up @@ -466,7 +463,7 @@
"cross_compile": {
"label": "Cross compiling",
"condition": "call.crossCompile",
"output": [ "publicConfig", "privateConfig", "publicFeature" ]
"output": [ "publicConfig", "privateConfig", "publicFeature", "crossCompile" ]
},
"cxx11default": {
"label": "Compiler defaults to C++11 or higher",
Expand Down Expand Up @@ -774,7 +771,7 @@
},
"avx": {
"label": "AVX",
"condition": "features.sse4_2 && tests.avx && tests.avx_apple_clang",
"condition": "features.sse4_2 && tests.avx",
"output": [
"privateConfig",
{ "type": "define", "name": "QT_COMPILER_SUPPORTS_AVX", "value": 1 }
Expand Down
30 changes: 15 additions & 15 deletions configure.pri
Original file line number Diff line number Diff line change
Expand Up @@ -274,18 +274,6 @@ defineTest(qtConfTest_architecture) {
return(true)
}

defineTest(qtConfTest_avx_test_apple_clang) {
!*g++*:!*-clang*: return(true)

qtRunLoggedCommand("$$QMAKE_CXX --version", compiler)|return(false)
contains(compiler, "Apple clang version [23]") {
# Some clang versions produce internal compiler errors compiling Qt AVX code
return(false)
} else {
return(true)
}
}

defineTest(qtConfTest_gnumake) {
make = $$qtConfFindInPath("gmake")
isEmpty(make): make = $$qtConfFindInPath("make")
Expand Down Expand Up @@ -369,8 +357,9 @@ defineTest(qtConfTest_detectPkgConfig) {
return(true)
}

defineTest(qtConfTest_neon) {
contains($${currentConfig}.tests.architecture.subarch, "neon"): return(true)
defineTest(qtConfTest_subarch) {
subarch = $$eval($${1}.subarch)
contains($${currentConfig}.tests.architecture.subarch, $${subarch}): return(true)
return(false)
}

Expand Down Expand Up @@ -859,6 +848,9 @@ defineTest(qtConfOutput_reloadSpec) {
!isEmpty(config.input.sysroot): \
reloadSpec()

# toolchain.prf uses this.
dummy = $$qtConfEvaluate("features.cross_compile")

bypassNesting() {
QMAKE_INTERNAL_INCLUDED_FEATURES -= \
$$[QT_HOST_DATA/src]/mkspecs/features/mac/toolchain.prf \
Expand Down Expand Up @@ -942,6 +934,14 @@ defineTest(qtConfOutput_pkgConfig) {
}
}

defineTest(qtConfOutput_crossCompile) {
!$${2}: return()

# We need to preempt the output here, as subsequent tests rely on it
CONFIG += cross_compile
export(CONFIG)
}

defineTest(qtConfOutput_useGoldLinker) {
!$${2}: return()

Expand Down Expand Up @@ -1026,7 +1026,7 @@ defineTest(qtConfOutput_gccSysroot) {
defineTest(qtConfOutput_qmakeArgs) {
!$${2}: return()

$${currentConfig}.output.privatePro = "!host_build {"
$${currentConfig}.output.privatePro = "!host_build|!cross_compile {"
for (a, config.input.qmakeArgs) {
$${currentConfig}.output.privatePro += " $$a"
EXTRA_QMAKE_ARGS += $$system_quote($$a)
Expand Down
3 changes: 2 additions & 1 deletion doc/global/compat.qdocconf
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ macro.endquote = "\\endquotation"
macro.relatesto = "\\relates"

spurious = "Missing comma in .*" \
"Missing pattern .*"
"Missing pattern .*" \
"Unable to parse (QML|JavaScript).*"
1 change: 0 additions & 1 deletion examples/xml/xmlstreamlint/xmlstreamlint.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG += console
CONFIG -= app_bundle
QT -= gui
QT += xml
SOURCES += main.cpp

# install
Expand Down
2 changes: 2 additions & 0 deletions mkspecs/common/gcc-base.conf
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ QMAKE_CFLAGS_AVX512VL += -mavx512vl
QMAKE_CFLAGS_AVX512IFMA += -mavx512ifma
QMAKE_CFLAGS_AVX512VBMI += -mavx512vbmi
QMAKE_CFLAGS_NEON += -mfpu=neon
QMAKE_CFLAGS_MIPS_DSP += -mdsp
QMAKE_CFLAGS_MIPS_DSPR2 += -mdspr2

# Wrapper tools that understand .o/.a files with GIMPLE instead of machine code
QMAKE_AR_LTCG = gcc-ar cqs
Expand Down
6 changes: 6 additions & 0 deletions mkspecs/common/msvc-version.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ greaterThan(QMAKE_MSC_VER, 1899) {
QMAKE_CFLAGS_AVX2 = -arch:AVX2
QMAKE_CXXFLAGS += -Zc:strictStrings -Zc:throwingNew
QMAKE_CXXFLAGS_WARN_ON += -w44456 -w44457 -w44458 -wd4577 -wd4467

greaterThan(QMAKE_MSC_FULL_VER, 190023918):!intel_icl {
isEmpty(QT_CLANG_MAJOR_VERSION)|!lessThan(QT_CLANG_MAJOR_VERSION, 4) {
QMAKE_CFLAGS_UTF8_SOURCE = -utf-8
}
}
}

greaterThan(QMAKE_MSC_VER, 1909) {
Expand Down
3 changes: 3 additions & 0 deletions mkspecs/features/android/android_deployment_settings.prf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ contains(TEMPLATE, ".*app"):!build_pass: {
NDK_TOOLCHAIN_PREFIX = $$(ANDROID_NDK_TOOLCHAIN_PREFIX)
isEmpty(NDK_TOOLCHAIN_PREFIX) {
equals(ANDROID_TARGET_ARCH, x86): NDK_TOOLCHAIN_PREFIX = x86
else: equals(ANDROID_TARGET_ARCH, x86_64): NDK_TOOLCHAIN_PREFIX = x86_64
else: equals(ANDROID_TARGET_ARCH, mips): NDK_TOOLCHAIN_PREFIX = mipsel-linux-android
else: equals(ANDROID_TARGET_ARCH, mips64): NDK_TOOLCHAIN_PREFIX = mips64el-linux-android
else: equals(ANDROID_TARGET_ARCH, arm64-v8a): NDK_TOOLCHAIN_PREFIX = aarch64-linux-android
else: NDK_TOOLCHAIN_PREFIX = arm-linux-androideabi
}
FILE_CONTENT += " \"toolchain-prefix\": $$emitString($$NDK_TOOLCHAIN_PREFIX),"
Expand Down
5 changes: 5 additions & 0 deletions mkspecs/features/default_post.prf
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ c++11|c++14|c++1z {
unset(cxxstd)
}

utf8_source {
QMAKE_CFLAGS += $$QMAKE_CFLAGS_UTF8_SOURCE
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_UTF8_SOURCE
}

!precompile_header: SOURCES += $$NO_PCH_SOURCES

QMAKE_INCDIR += $$QMAKE_INCDIR_POST
Expand Down
1 change: 1 addition & 0 deletions mkspecs/features/qt_build_config.prf
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ android|uikit|winrt: \
CONFIG += builtin_testdata

CONFIG += \
utf8_source \
create_prl link_prl \
prepare_docs qt_docs_targets \
no_private_qt_headers_warning QTDIR_build \
Expand Down
4 changes: 2 additions & 2 deletions mkspecs/features/qt_common.prf
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ warnings_are_errors:warning_clean {
# compiler.
clang {
# Apple clang 4.0-4.2,5.0-5.1,6.0-6.4,7.0-7.3
# Regular clang 3.3-3.9
# Regular clang 3.3-3.9, 4.0
apple_ver = $${QT_APPLE_CLANG_MAJOR_VERSION}.$${QT_APPLE_CLANG_MINOR_VERSION}
reg_ver = $${QT_CLANG_MAJOR_VERSION}.$${QT_CLANG_MINOR_VERSION}
contains(apple_ver, "4\\.[012]|5\\.[01]|6\\.[01234]|7\\.[0123]")|contains(reg_ver, "3\\.[3-9]") {
contains(apple_ver, "4\\.[012]|5\\.[01]|6\\.[01234]|7\\.[0123]")|contains(reg_ver, "3\\.[3-9]|4\\.0") {
QMAKE_CXXFLAGS_WARN_ON += -Werror -Wno-error=\\$${LITERAL_HASH}warnings -Wno-error=deprecated-declarations $$WERROR
}
} else:intel_icc:linux {
Expand Down
8 changes: 7 additions & 1 deletion mkspecs/features/qt_configure.prf
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ defineTest(qtConfTest_compile) {

qmake_args += "\"CONFIG += $$qmake_configs\""

!$$host {
!$$host|!cross_compile {
# On WinRT we need to change the entry point as we cannot create windows
# applications
winrt: \
Expand All @@ -768,6 +768,12 @@ defineTest(qtConfTest_compile) {
qmake_args += $$EXTRA_QMAKE_ARGS
}

# make sure to make this the last override (because of -early)
cross_compile {
# must be done before loading default_pre.prf.
qmake_args += -early "\"CONFIG += cross_compile\""
}

# Clean up after previous run
exists($$test_out_dir/Makefile): \
QMAKE_MAKE = "$$QMAKE_MAKE clean && $$QMAKE_MAKE"
Expand Down
6 changes: 3 additions & 3 deletions mkspecs/features/qt_module.prf
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ load(qt_build_paths)

header_module {
TEMPLATE = aux
CONFIG += \
force_qt \ # Needed for the headers_clean tests.
qt_no_install_library
CONFIG += force_qt # Needed for the headers_clean tests.
!lib_bundle: \
CONFIG += qt_no_install_library
} else {
TEMPLATE = lib
}
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/features/win32/default_pre.prf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CONFIG = incremental_off windows $$CONFIG
CONFIG = windows $$CONFIG
load(default_pre)
2 changes: 1 addition & 1 deletion mkspecs/linux-icc/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ QMAKE_CFLAGS_APP = -fPIC
QMAKE_CFLAGS_DEPS = -M
QMAKE_CFLAGS_WARN_ON = -w1 -Wall -Wcheck -wd1572,873,2259,2261,3373
QMAKE_CFLAGS_WARN_OFF = -w
QMAKE_CFLAGS_RELEASE = -O2 -falign-functions=16 -ansi-alias -fstrict-aliasing
QMAKE_CFLAGS_RELEASE = -O2 -ansi-alias -fstrict-aliasing
QMAKE_CFLAGS_DEBUG = -O0 -g
QMAKE_CFLAGS_SHLIB = -fPIC
QMAKE_CFLAGS_STATIC_LIB = $$QMAKE_CFLAGS_SHLIB
Expand Down
Loading

0 comments on commit dd75601

Please sign in to comment.