diff options
author | rebecca “wiggles” turner <rbt@sent.as> | 2024-08-28 16:43:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@localhost> | 2024-08-28 16:43:22 +0000 |
commit | 422550fd68a5877534b1ca577fc3c7d89b6706dd (patch) | |
tree | f800e0a34110e53c23bb230f11b33096b62ee344 /src/libstore/s3-binary-cache-store.cc | |
parent | 5d31e889d7f3310cb030e85adcfd3ce64846457d (diff) | |
parent | 4f02255c205378427f5831463c0c07e45382b2b2 (diff) |
Merge "libstore: remove static initializers for Store registrations" into main
Diffstat (limited to 'src/libstore/s3-binary-cache-store.cc')
-rw-r--r-- | src/libstore/s3-binary-cache-store.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libstore/s3-binary-cache-store.cc b/src/libstore/s3-binary-cache-store.cc index ffebfda8d..921a2e556 100644 --- a/src/libstore/s3-binary-cache-store.cc +++ b/src/libstore/s3-binary-cache-store.cc @@ -526,8 +526,14 @@ struct S3BinaryCacheStoreImpl : virtual S3BinaryCacheStoreConfig, public virtual }; -static RegisterStoreImplementation<S3BinaryCacheStoreImpl, S3BinaryCacheStoreConfig> regS3BinaryCacheStore; +void registerS3BinaryCacheStore() { + StoreImplementations::add<S3BinaryCacheStoreImpl, S3BinaryCacheStoreConfig>(); +} } +#else +namespace nix { +void registerS3BinaryCacheStore() {} +} #endif |