Export shared and static libraries

This commit is contained in:
2024-01-24 15:10:06 -08:00
parent 2d152b9a62
commit a6a2ad61d9
3 changed files with 33 additions and 16 deletions

View File

@@ -1042,7 +1042,9 @@ struct Iterator {
int cmp;
};
namespace {
std::string_view getSearchPath(Arena &arena, Node *n);
}
Iterator lastLeq(Node *n, const std::span<const uint8_t> key) {
auto remaining = key;
@@ -1111,8 +1113,10 @@ void insert(Node **self_, std::span<const uint8_t> key, int64_t writeVersion) {
}
}
namespace {
std::string printable(std::string_view key);
std::string printable(const Key &key);
} // namespace
struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
void check(const ReadRange *reads, Result *result, int count) const {
@@ -1248,6 +1252,8 @@ __attribute__((__visibility__("default"))) void ConflictSet_destroy(void *cs) {
}
}
namespace {
std::string printable(std::string_view key) {
std::string result;
for (uint8_t c : key) {
@@ -1385,6 +1391,8 @@ bool checkCorrectness(Node *node, ReferenceImpl &refImpl) {
return success;
}
} // namespace
namespace std {
void __throw_length_error(const char *) { __builtin_unreachable(); }
} // namespace std