diff options
| author | Hennadii Zabula <zabulus12@gmail.com> | 2017-05-23 12:31:09 +0300 |
|---|---|---|
| committer | Hennadii Zabula <zabulus12@gmail.com> | 2017-05-25 10:55:07 +0300 |
| commit | c5d7766b0049c0d292c1886689b08f3d4d2c9057 (patch) | |
| tree | f78aa639a1e5d5205032d226f3ada887f84a6930 | |
| parent | dfaa7a831c914447cb9413bc82bd3ea2ee72594b (diff) | |
| download | vcpkg-c5d7766b0049c0d292c1886689b08f3d4d2c9057.tar.gz vcpkg-c5d7766b0049c0d292c1886689b08f3d4d2c9057.zip | |
Fix double conversion build
| -rw-r--r-- | ports/double-conversion/001-fix-arm.patch | 13 | ||||
| -rw-r--r-- | ports/double-conversion/portfile.cmake | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ports/double-conversion/001-fix-arm.patch b/ports/double-conversion/001-fix-arm.patch new file mode 100644 index 000000000..98ce2080c --- /dev/null +++ b/ports/double-conversion/001-fix-arm.patch @@ -0,0 +1,13 @@ +diff --git a/double-conversion/utils.h b/double-conversion/utils.h" +index 51d5e61..24cd5f1 100644 +--- a/double-conversion/utils.h ++++ "b/double-conversion/utils.h" +@@ -68,7 +68,7 @@ inline void abort_noreturn() { abort(); } + // disabled.) + // On Linux,x86 89255e-22 != Div_double(89255.0/1e22) + #if defined(_M_X64) || defined(__x86_64__) || \ +- defined(__ARMEL__) || defined(__avr32__) || \ ++ defined(__ARMEL__) || defined(__avr32__) || defined(_M_ARM) || \ + defined(__hppa__) || defined(__ia64__) || \ + defined(__mips__) || \ + defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ diff --git a/ports/double-conversion/portfile.cmake b/ports/double-conversion/portfile.cmake index 05365d777..c5f954c1f 100644 --- a/ports/double-conversion/portfile.cmake +++ b/ports/double-conversion/portfile.cmake @@ -22,6 +22,12 @@ vcpkg_download_distfile(ARCHIVE SHA512 1406dc22b4ea71e1a2490f96cfed3230e122b97607c83ba106df4e90c7e4bfdcfc136c88741e7f1127237b38b4944d462ec5a4627a71f5ea3fe14afbcc64cd44 ) vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_apply_patches( + SOURCE_PATH ${SOURCE_PATH} + PATCHES ${CMAKE_CURRENT_LIST_DIR}/001-fix-arm.patch +) + vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH} OPTIONS -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=True) vcpkg_install_cmake() |
