Skip to content

Commit 89ab7bb

Browse files
committed
build: add executable suffix for -fuse-ld=
The `-fuse-ld=` parameter requires the executable suffix for this to work on Windows. This allows us to cross-compile for android on Windows.
1 parent afa6cc3 commit 89ab7bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/DispatchUtilities.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ function(dispatch_set_linker target)
44
set_property(TARGET ${target}
55
APPEND_STRING
66
PROPERTY LINK_FLAGS
7-
-fuse-ld=gold)
7+
-fuse-ld=gold${CMAKE_EXECUTABLE_SUFFIX})
88
endif()
99
if(USE_LLD_LINKER)
1010
set_property(TARGET ${target}
1111
APPEND_STRING
1212
PROPERTY LINK_FLAGS
13-
-fuse-ld=lld)
13+
-fuse-ld=lld${CMAKE_EXECUTABLE_SUFFIX})
1414
endif()
1515
endfunction()

0 commit comments

Comments
 (0)