summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2023-05-11 12:19:52 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2023-05-16 23:27:14 +0200
commit6d8617742f179b09631653a9d2fc4da8be876a54 (patch)
tree381242ec759cabb1404252b6340ae0676e931785 /cmake
parent2e99b92731934f77e06faf0869dd65376d7db118 (diff)
Enable large pdbs by default
The current limit is often hit by incremental builds when working on webengine, and it costs us nothing to enable it. Pick-to: 6.5 Change-Id: I3aa96b789e0949637b174be31b5f36315718e201 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Functions.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake
index b460dbbe8..df942b14d 100644
--- a/cmake/Functions.cmake
+++ b/cmake/Functions.cmake
@@ -503,6 +503,8 @@ function(add_linker_options target buildDir completeStatic)
endif()
get_copy_of_response_file(libs_rsp ${target} libs)
target_link_options(${cmakeTarget} PRIVATE "$<$<CONFIG:${config}>:@${libs_rsp}>")
+ # enable larger PDBs
+ target_link_options(${cmakeTarget} PRIVATE "/pdbpagesize:8192")
# we need libs rsp also when linking process with sandbox lib
set_property(TARGET ${cmakeTarget} PROPERTY LIBS_RSP ${libs_rsp})
endif()