mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-18 18:15:50 +00:00
- Copies the recipe for Snappy from Conan Center, but removes three lines that explicitly link the standard library, which prevents builders from statically linking it. - Removes the recipe for RocksDB now that an official recipe for version 6.27.3 is in Conan Center. Developers will likely need to remove cached versions of both RocksDB and Snappy: ``` conan remove -f rocksdb conan remove -f snappy ``` --------- Co-authored-by: John Freeman <jfreeman08@gmail.com>
15 lines
494 B
Diff
15 lines
494 B
Diff
Fixes the following error:
|
||
error: inlining failed in call to ‘always_inline’ ‘size_t snappy::AdvanceToNextTag(const uint8_t**, size_t*)’: function body can be overwritten at link time
|
||
|
||
--- snappy-stubs-internal.h
|
||
+++ snappy-stubs-internal.h
|
||
@@ -100,7 +100,7 @@
|
||
|
||
// Inlining hints.
|
||
#ifdef HAVE_ATTRIBUTE_ALWAYS_INLINE
|
||
-#define SNAPPY_ATTRIBUTE_ALWAYS_INLINE __attribute__((always_inline))
|
||
+#define SNAPPY_ATTRIBUTE_ALWAYS_INLINE
|
||
#else
|
||
#define SNAPPY_ATTRIBUTE_ALWAYS_INLINE
|
||
#endif
|