mirror of
https://github.com/NixOS/nix.git
synced 2025-11-28 21:21:00 +01:00
libstore: Align LocalFSStore to 8 bytes even on i686-linux
This works around https://hydra.nixos.org/build/314579538/nixlog/1.
This commit is contained in:
parent
aa0265f77e
commit
7c76a812fe
3 changed files with 9 additions and 3 deletions
|
|
@ -65,7 +65,9 @@ struct BinaryCacheStoreConfig : virtual StoreConfig
|
||||||
* @note subclasses must implement at least one of the two
|
* @note subclasses must implement at least one of the two
|
||||||
* virtual getFile() methods.
|
* virtual getFile() methods.
|
||||||
*/
|
*/
|
||||||
struct BinaryCacheStore : virtual Store, virtual LogStore
|
struct alignas(8) /* Work around ASAN failures on i686-linux. */
|
||||||
|
BinaryCacheStore : virtual Store,
|
||||||
|
virtual LogStore
|
||||||
{
|
{
|
||||||
using Config = BinaryCacheStoreConfig;
|
using Config = BinaryCacheStoreConfig;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,10 @@ public:
|
||||||
this, rootDir.get() ? *rootDir.get() + "/nix/store" : storeDir, "real", "Physical path of the Nix store."};
|
this, rootDir.get() ? *rootDir.get() + "/nix/store" : storeDir, "real", "Physical path of the Nix store."};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct LocalFSStore : virtual Store, virtual GcStore, virtual LogStore
|
struct alignas(8) /* Work around ASAN failures on i686-linux. */
|
||||||
|
LocalFSStore : virtual Store,
|
||||||
|
virtual GcStore,
|
||||||
|
virtual LogStore
|
||||||
{
|
{
|
||||||
using Config = LocalFSStoreConfig;
|
using Config = LocalFSStoreConfig;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,8 @@ StoreReference SSHStoreConfig::getReference() const
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SSHStore : virtual RemoteStore
|
struct alignas(8) /* Work around ASAN failures on i686-linux. */
|
||||||
|
SSHStore : virtual RemoteStore
|
||||||
{
|
{
|
||||||
using Config = SSHStoreConfig;
|
using Config = SSHStoreConfig;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue