summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-05-12 13:23:46 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-05-15 17:28:40 +0200
commit14a4267dec9be4e6230bfa52f295f6c43b1e23f7 (patch)
tree4d7d66ec46837d49c8d470cfd81baeae02309f2f /mkspecs
parenta7a1c39016a14f15ee2a3772e14b67cbc681e938 (diff)
Fix -no-reduce-exports gcc builds
Fixes: QTBUG-84159 Change-Id: I3d4259e3cc270d365a7c3a8b85454dc1a86c9ebc Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/gn_generator.prf3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkspecs/features/gn_generator.prf b/mkspecs/features/gn_generator.prf
index 6ff09d851..a83b59847 100644
--- a/mkspecs/features/gn_generator.prf
+++ b/mkspecs/features/gn_generator.prf
@@ -230,6 +230,9 @@ win32 {
CONFIG(rtti_off): GN_CONTENTS += " configs += [\"//build/config/compiler:no_rtti\"]"
CONFIG(rtti): GN_CONTENTS += " configs += [\"//build/config/compiler:rtti\"]"
}
+gcc:!qtConfig(reduce_exports) {
+ GN_CONTENTS += " configs -= [\"//build/config/gcc:symbol_visibility_hidden\"]"
+}
GN_CONTENTS += " if (moc_source_h_files != []) {"
GN_CONTENTS += " deps += ["