summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar lat9nq2022-05-28 04:02:35 -0400
committerGravatar lat9nq2022-05-28 04:07:46 -0400
commit6e12eb80a005bc9616fce2927ba9165557332e28 (patch)
tree3158d57a6667bbff00460e3ba0e15d3f6ff9fce0
parentMerge pull request #8372 from german77/touch (diff)
downloadyuzu-6e12eb80a005bc9616fce2927ba9165557332e28.tar.gz
yuzu-6e12eb80a005bc9616fce2927ba9165557332e28.tar.xz
yuzu-6e12eb80a005bc9616fce2927ba9165557332e28.zip
yuzu-qt: Call -Wl,--subsystem,windows directly
-mwindows doesn't work with Clang. tpoechtrager/wclang resolves this by just using MinGW-GCC to link the executable, however this prevents us from using LLVM-exclusive tools when building yuzu. Solution is to send the linker argument we need from -mwindows directly to the linker. From https://gcc-help.gcc.gnu.narkive.com/FogklN5J/gcc-wl-subsystem-windows-mwindows-options
Diffstat (limited to '')
-rw-r--r--src/yuzu/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index 2ee21f751..404acdd05 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -240,7 +240,7 @@ elseif(WIN32)
240 if(MSVC) 240 if(MSVC)
241 set_target_properties(yuzu PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS") 241 set_target_properties(yuzu PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")
242 elseif(MINGW) 242 elseif(MINGW)
243 set_target_properties(yuzu PROPERTIES LINK_FLAGS_RELEASE "-mwindows") 243 set_target_properties(yuzu PROPERTIES LINK_FLAGS_RELEASE "-Wl,--subsystem,windows")
244 endif() 244 endif()
245endif() 245endif()
246 246