summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-05-07 16:32:18 +0200
committerLars Knoll <lars.knoll@qt.io>2020-05-14 19:14:51 +0200
commitb4fd377aa984defea63ecb8951c152872202146e (patch)
tree18aa45156dce81faf4aebb83a36a58ec5198f763 /mkspecs
parent9e1dc1e8a9fda1a7576cc6377c8a36decff631eb (diff)
Make utf8_source the default for qmake builds
We now assume that source code is encoded in UTF-8 by default on all platforms (and verify this with an auto test). Provide a CONFIG+=no_utf8_source option for backwards compatibility. [ChangeLog][qmake] qmake will tell the compiler that source code is encoded in utf-8 by default. This mainly has an effect on Windows, where MSVC still assumes source code is encoded in the current ANSI code page. Use CONFIG+=no_utf8_source to get back the Qt 5 behavior. Change-Id: I6dcafcaeefdea7d3907ccb723aeb7d23ccc0f04f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/default_post.prf2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/features/default_post.prf b/mkspecs/features/default_post.prf
index 9c73eeef69..b2985fe89c 100644
--- a/mkspecs/features/default_post.prf
+++ b/mkspecs/features/default_post.prf
@@ -166,7 +166,7 @@ c99|c11 {
unset(cstd)
}
-utf8_source {
+!no_utf8_source {
QMAKE_CFLAGS += $$QMAKE_CFLAGS_UTF8_SOURCE
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_UTF8_SOURCE
}