diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2020-03-11 00:31:38 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-10 09:31:38 -0700 |
| commit | 7893f7c76c8f61d971b530b120a2261d80b85592 (patch) | |
| tree | 44ad828bad366dfb8dc3a599d554c77f78d7c4b4 /ports/upb/fix-uwp.patch | |
| parent | 8fe412611cfbd756781d698c05e0b837f7cfa364 (diff) | |
| download | vcpkg-7893f7c76c8f61d971b530b120a2261d80b85592.tar.gz vcpkg-7893f7c76c8f61d971b530b120a2261d80b85592.zip | |
[upb] Fix uwp build (#10005)
* [upb] Fix uwp build
* update baseline
Diffstat (limited to 'ports/upb/fix-uwp.patch')
| -rw-r--r-- | ports/upb/fix-uwp.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ports/upb/fix-uwp.patch b/ports/upb/fix-uwp.patch new file mode 100644 index 000000000..91c45b416 --- /dev/null +++ b/ports/upb/fix-uwp.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 577000a..759e35b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -58,6 +58,10 @@ elseif(UNIX) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--build-id") + endif() + ++if (MSVC) ++ add_compile_options(/wd4146 -D_CRT_SECURE_NO_WARNINGS) ++endif() ++ + enable_testing() + add_library(descriptor_upbproto INTERFACE) + add_library(upb |
