summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2024-02-02 18:21:05 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-02-08 20:07:10 +0000
commit0d1439fdf9b3b437f7bbf0876c92a3b2212175c1 (patch)
treec143b5216e0616977a14d70ae14da294cc9579fd
parenta5c3ee2000e7a3f18e08738105e2e99eed7e5026 (diff)
Use only 'pdbpagesize' linker option for webenginecore debug
Using 'pdbpagesize' allows to create larger pdbfiles and it is needed for debug builds for qwebenginecore as it gets over 4Gb. However, these files are not yet well supported by older tooling therefore use the setting only for webengine debug build. This allows qtpdf debug builds and webenginecore/qtpdf release with debug info have functional pdb files with older tooling like cdb on windows. Pick-to: 6.6 Task-number: QTCREATORBUG-30308 Change-Id: Icd79a0d36b2f4b7f767d17ed79de3a4cbf96f1b4 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io> (cherry picked from commit 2af8c8c0b35bd37ba8df591d928720d2b894e816) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--cmake/Functions.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake
index cbaf0c61e..e1044de8f 100644
--- a/cmake/Functions.cmake
+++ b/cmake/Functions.cmake
@@ -449,8 +449,10 @@ function(add_linker_options target buildDir completeStatic)
target_link_options(${cmakeTarget}
PRIVATE /DELAYLOAD:mf.dll /DELAYLOAD:mfplat.dll /DELAYLOAD:mfreadwrite.dll /DELAYLOAD:winmm.dll
)
- # enable larger PDBs
- target_link_options(${cmakeTarget} PRIVATE "/pdbpagesize:8192")
+ # enable larger PDBs if webenginecore debug build
+ if(cmakeTarget STREQUAL "WebEngineCore")
+ target_link_options(${cmakeTarget} PRIVATE "$<$<CONFIG:Debug>:/pdbpagesize:8192>")
+ endif()
endif()
target_link_options(${cmakeTarget} PRIVATE "$<$<CONFIG:${config}>:@${objects_rsp}>")
if(NOT completeStatic)