diff options
author | Artemis Tosini <lix@artem.ist> | 2024-04-22 17:32:21 +0000 |
---|---|---|
committer | Artemis Tosini <lix@artem.ist> | 2024-04-23 16:17:05 +0000 |
commit | b247ef72dc7bcc857288c0ddcceb3e42f76a78f1 (patch) | |
tree | 01ec226e6f1e030797bde73bac219c2eb87e7c00 /src/libstore/local.mk | |
parent | c8c838381d8e76450ffd57b778bb28217b32084d (diff) |
libstore: Create platform LocalStore subclasses
This creates new subclasses of LocalStore for each OS to include
platform-specific functionality. Currently this just includes garbage
collector roots but it could be extended to sandboxing as well.
In order to make sure that the generic LocalStore is not accidentally
constructed, its constructor is protected. A Fallback is provided which
implements no functionality except constructors.
Change-Id: I836a28e90b68309873f75afb83e0f1b2e2c89fb3
Diffstat (limited to 'src/libstore/local.mk')
-rw-r--r-- | src/libstore/local.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/local.mk b/src/libstore/local.mk index 68ccdc409..6bd73965d 100644 --- a/src/libstore/local.mk +++ b/src/libstore/local.mk @@ -5,6 +5,11 @@ libstore_NAME = libnixstore libstore_DIR := $(d) libstore_SOURCES := $(wildcard $(d)/*.cc $(d)/builtins/*.cc $(d)/build/*.cc) +ifdef HOST_LINUX +libstore_SOURCES += $(d)/platform/linux.cc +else +libstore_SOURCES += $(d)/platform/fallback.cc +endif libstore_LIBS = libutil |