path: root/examples/widgets/itemviews/editabletreemodel/CMakeLists.txt
diff options
authorYuhang Zhao <>2021-12-02 17:14:00 +0800
committerYuhang Zhao <>2021-12-04 14:15:16 +0800
commit5074344c9c1fb9a510f333d470d83e8da94072f9 (patch)
treec1bf31858b2dfbb53d8a40de74b2b06a6dccf007 /examples/widgets/itemviews/editabletreemodel/CMakeLists.txt
parent83f2f27bb6cac0b85cdb47365347493d8dc5feb2 (diff)
MSVC: Use dubbed FH4 to make C++ exception handling smaller
Visual Studio 2019 introduced the dubbed FH4 feature which can make C++ exception handling smaller on x64. According to the article [1], it's enabled by default for UWP applications, and Microsoft also use it in their own widely-known commercial products such as Office to reduce the binary size. So make use of this feature for Qt when possible, to get smaller binary. As a drive-by, add "/EHs-c-" explicitly to the flags when we want to disable C++ exception handling. [1] Official article that introduces dubbed FH4: Change-Id: I2e3330de477f78372cf7903d0ef7a732b09552a9 Reviewed-by: Thiago Macieira <> Reviewed-by: André de la Rocha <> Reviewed-by: Qt CI Bot <> Reviewed-by: Oliver Wolff <>
Diffstat (limited to 'examples/widgets/itemviews/editabletreemodel/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions