aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qtwebengine/clang-cl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/qtwebengine/clang-cl.patch')
-rw-r--r--vcpkg/ports/qtwebengine/clang-cl.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/qtwebengine/clang-cl.patch b/vcpkg/ports/qtwebengine/clang-cl.patch
new file mode 100644
index 0000000..03c87b8
--- /dev/null
+++ b/vcpkg/ports/qtwebengine/clang-cl.patch
@@ -0,0 +1,24 @@
+diff --git a/src/3rdparty/gn/build/build_win.ninja.template b/src/3rdparty/gn/build/build_win.ninja.template
+index 7d2704c..b14186b 100644
+--- a/src/3rdparty/gn/build/build_win.ninja.template
++++ b/src/3rdparty/gn/build/build_win.ninja.template
+@@ -8,5 +8,5 @@ rule alink_thin
+ description = LIB $out
+
+ rule link
+- command = $ld /nologo $in /link $ldflags /PDB:$out.pdb /OUT:$out $solibs $libs
++ command = $ld /nologo $in $ldflags /PDB:$out.pdb /OUT:$out $solibs $libs
+ description = LINK $out
+diff --git a/src/gn/CMakeLists.txt b/src/gn/CMakeLists.txt
+index 0fe3e4e..1e2556f 100644
+--- a/src/gn/CMakeLists.txt
++++ b/src/gn/CMakeLists.txt
+@@ -31,7 +31,7 @@ find_package(Ninja 1.7.2 REQUIRED)
+
+ if(WIN32)
+ set(GN_EXECUTABLE gn.exe)
+- if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT MINGW)
++ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT MINGW OR MSVC)
+ # Use lld-link instead of clang-cl.
+ set(GN_LINKER ${CMAKE_LINKER})
+ endif()