mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[folly] Fix build error C3861 (#12419)
* [folly] Fix build error C3861 * Update CONTROL
This commit is contained in:
parent
38e1a6465b
commit
38d635a8fe
@ -1,5 +1,6 @@
|
|||||||
Source: folly
|
Source: folly
|
||||||
Version: 2019.10.21.00-2
|
Version: 2019.10.21.00
|
||||||
|
Port-Version: 3
|
||||||
Homepage: https://github.com/facebook/folly
|
Homepage: https://github.com/facebook/folly
|
||||||
Description: An open-source C++ library developed and used at Facebook. The library is UNSTABLE on Windows
|
Description: An open-source C++ library developed and used at Facebook. The library is UNSTABLE on Windows
|
||||||
Build-Depends: openssl, libevent, double-conversion, glog, gflags, boost-chrono, boost-context, boost-conversion, boost-crc, boost-date-time, boost-filesystem, boost-multi-index, boost-program-options, boost-regex, boost-system, boost-thread, boost-smart-ptr
|
Build-Depends: openssl, libevent, double-conversion, glog, gflags, boost-chrono, boost-context, boost-conversion, boost-crc, boost-date-time, boost-filesystem, boost-multi-index, boost-program-options, boost-regex, boost-system, boost-thread, boost-smart-ptr
|
||||||
|
50
ports/folly/folly_c3861.patch
Normal file
50
ports/folly/folly_c3861.patch
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
diff --git a/folly/portability/Builtins.h b/folly/portability/Builtins.h
|
||||||
|
index 971cb88..7894333 100644
|
||||||
|
--- a/folly/portability/Builtins.h
|
||||||
|
+++ b/folly/portability/Builtins.h
|
||||||
|
@@ -41,7 +41,7 @@ FOLLY_ALWAYS_INLINE void __builtin___clear_cache(char* begin, char* end) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-#if !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
+// #if !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
FOLLY_ALWAYS_INLINE int __builtin_clz(unsigned int x) {
|
||||||
|
unsigned long index;
|
||||||
|
return int(_BitScanReverse(&index, (unsigned long)x) ? 31 - index : 32);
|
||||||
|
@@ -93,7 +93,7 @@ FOLLY_ALWAYS_INLINE int __builtin_ctzll(unsigned long long x) {
|
||||||
|
return int(_BitScanForward64(&index, x) ? index : 64);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
-#endif // !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
+// #endif // !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
|
||||||
|
FOLLY_ALWAYS_INLINE int __builtin_ffs(int x) {
|
||||||
|
unsigned long index;
|
||||||
|
@@ -119,15 +119,15 @@ FOLLY_ALWAYS_INLINE int __builtin_popcount(unsigned int x) {
|
||||||
|
return int(__popcnt(x));
|
||||||
|
}
|
||||||
|
|
||||||
|
-#if !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
+// #if !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
FOLLY_ALWAYS_INLINE int __builtin_popcountl(unsigned long x) {
|
||||||
|
static_assert(sizeof(x) == 4, "");
|
||||||
|
return int(__popcnt(x));
|
||||||
|
}
|
||||||
|
-#endif // !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
+// #endif // !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#if !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
+// #if !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
#if defined(_M_IX86)
|
||||||
|
FOLLY_ALWAYS_INLINE int __builtin_popcountll(unsigned long long x) {
|
||||||
|
return int(__popcnt((unsigned int)(x >> 32))) +
|
||||||
|
@@ -138,7 +138,7 @@ FOLLY_ALWAYS_INLINE int __builtin_popcountll(unsigned long long x) {
|
||||||
|
return int(__popcnt64(x));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
-#endif // !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
+// #endif // !defined(_MSC_VER) || (_MSC_VER < 1923)
|
||||||
|
|
||||||
|
FOLLY_ALWAYS_INLINE void* __builtin_return_address(unsigned int frame) {
|
||||||
|
// I really hope frame is zero...
|
@ -21,6 +21,7 @@ vcpkg_from_github(
|
|||||||
disable-non-underscore-posix-names.patch
|
disable-non-underscore-posix-names.patch
|
||||||
boost-1.70.patch
|
boost-1.70.patch
|
||||||
fix-addbit.patch
|
fix-addbit.patch
|
||||||
|
folly_c3861.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
file(COPY
|
file(COPY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user