diff options
author | Pierre Bourdon <delroth@gmail.com> | 2024-06-05 06:02:18 +0200 |
---|---|---|
committer | Rebecca Turner <rbt@sent.as> | 2024-08-26 16:27:31 -0700 |
commit | 4f02255c205378427f5831463c0c07e45382b2b2 (patch) | |
tree | 875efcf49a86ced24b37d72587bc4dfb153c4460 /src/libstore/platform/linux.cc | |
parent | ca08f1217d8779971d4f2b306a19ad5622360372 (diff) |
libstore: remove static initializers for Store registrations
Ref #359.
Change-Id: Ia45530ddee25fa9fc399ff10738bb0d8bbc8b221
Diffstat (limited to 'src/libstore/platform/linux.cc')
-rw-r--r-- | src/libstore/platform/linux.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/platform/linux.cc b/src/libstore/platform/linux.cc index 03b8bc0be..f22fbe58f 100644 --- a/src/libstore/platform/linux.cc +++ b/src/libstore/platform/linux.cc @@ -25,7 +25,9 @@ namespace { constexpr const std::string_view nativeSystem = SYSTEM; } -static RegisterStoreImplementation<LinuxLocalStore, LocalStoreConfig> regLocalStore; +void registerLocalStore() { + StoreImplementations::add<LinuxLocalStore, LocalStoreConfig>(); +} static void readProcLink(const std::string & file, UncheckedRoots & roots) { |