Skip to content

Commit 484f3cd

Browse files
BtbNcharles-lunarg
authored andcommitted
Silence stdcall fixup warnings on 32bit mingw builds
1 parent 362c295 commit 484f3cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

loader/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ if(WIN32)
393393
set_target_properties(vulkan
394394
PROPERTIES
395395
PREFIX "")
396+
# let the linker just fix up the stdcall mangling, like on msvc
397+
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
398+
target_link_options(vulkan PRIVATE "-Wl,--enable-stdcall-fixup")
399+
endif()
396400
endif()
397401

398402
if(MSVC AND ENABLE_WIN10_ONECORE)

0 commit comments

Comments
 (0)