summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/toolchain.prf
diff options
context:
space:
mode:
authorJani Heikkinen <jani.heikkinen@qt.io>2017-10-02 09:23:31 +0300
committerJani Heikkinen <jani.heikkinen@qt.io>2017-10-02 08:43:38 +0000
commitec16ba393baf504d4b192cc349775c62d3c96aa0 (patch)
treed2e00f15382ecec5c4737efc233a503e7d38d22d /mkspecs/features/toolchain.prf
parent8883e44eca057dce04e94bce50d41c472e4e8f00 (diff)
Revert "Qmake: Introduce and use QMAKE_NULL_DEVICE variable"v5.9.2
With that change QNX7 builds in windows will fail. This reverts commit b4e9cb4c29ef797fe535a84717bebf81fbdc61e4. Task-number: QTBUG-63535 Change-Id: Ia91d173803af62d41d1a7e5832bab911920f590d Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'mkspecs/features/toolchain.prf')
-rw-r--r--mkspecs/features/toolchain.prf18
1 files changed, 12 insertions, 6 deletions
diff --git a/mkspecs/features/toolchain.prf b/mkspecs/features/toolchain.prf
index e7ada377d7..35175f1744 100644
--- a/mkspecs/features/toolchain.prf
+++ b/mkspecs/features/toolchain.prf
@@ -32,11 +32,15 @@ isEmpty($${target_prefix}.INCDIRS) {
# Get default include and library paths from compiler
#
gcc {
- cmd_suffix = "<$$QMAKE_NULL_DEVICE >$$QMAKE_NULL_DEVICE"
- equals(QMAKE_HOST.os, Windows): \
- cmd_prefix = "set LC_ALL=C&"
- else: \
+ !equals(QMAKE_HOST.os, Windows) {
cmd_prefix = "LC_ALL=C"
+ cmd_suffix = "</dev/null >/dev/null"
+ null_file = /dev/null
+ } else {
+ cmd_prefix = "set LC_ALL=C&"
+ cmd_suffix = "<NUL >NUL"
+ null_file = NUL
+ }
cxx_flags = $$QMAKE_CXXFLAGS
@@ -55,7 +59,7 @@ isEmpty($${target_prefix}.INCDIRS) {
rim_qcc: \
# Need the cc1plus and ld command lines to pick up the paths
- cxx_flags += $$QMAKE_LFLAGS_SHLIB -o $$QMAKE_NULL_DEVICE -v
+ cxx_flags += $$QMAKE_LFLAGS_SHLIB -o $$null_file -v
else: darwin:clang: \
# Need to link to pick up library paths
cxx_flags += $$QMAKE_LFLAGS_SHLIB -o /dev/null -v -Wl,-v
@@ -171,7 +175,9 @@ defineReplace(qtVariablesFromMSVC) {
}
defineReplace(qtVariablesFromGCC) {
- ret = $$system("$$1 -E $$system_quote($$PWD/data/macros.cpp) <$$QMAKE_NULL_DEVICE 2>$$QMAKE_NULL_DEVICE", lines, ec)
+ null_device = /dev/null
+ equals(QMAKE_HOST.os, Windows): null_device = NUL
+ ret = $$system("$$1 -E $$system_quote($$PWD/data/macros.cpp) <$$null_device 2>$$null_device", lines, ec)
!equals(ec, 0): qtCompilerErrror($$1)
return($$ret)
}