reenable incbin on 64-bit platforms (#4988)
turns out we're still making releases for 32-bit platforms 😲
This commit is contained in:
parent
f904206e13
commit
74b670a4c9
|
@ -34,9 +34,7 @@ export
|
|||
const
|
||||
vendorDir = currentSourcePath.parentDir.replace('\\', '/') & "/../../vendor"
|
||||
|
||||
# TODO: Currently, this breaks the Linux/ARM packaging due
|
||||
# to a toolchain incompatibility problem
|
||||
incbinEnabled* = false
|
||||
incbinEnabled* = sizeof(pointer) == 8
|
||||
|
||||
type
|
||||
Eth1BlockHash* = ethtypes.BlockHash
|
||||
|
@ -174,9 +172,6 @@ proc loadEth2NetworkMetadata*(
|
|||
readBootEnr(bootEnrPath))
|
||||
|
||||
genesisData = if loadGenesis and fileExists(genesisPath):
|
||||
when incbinEnabled:
|
||||
toBytes readFile(genesisPath)
|
||||
else:
|
||||
readFile(genesisPath)
|
||||
else:
|
||||
""
|
||||
|
@ -193,7 +188,9 @@ proc loadEth2NetworkMetadata*(
|
|||
bootstrapNodes: bootstrapNodes,
|
||||
depositContractBlock: depositContractBlock,
|
||||
depositContractBlockHash: depositContractBlockHash,
|
||||
genesisData: genesisData,
|
||||
genesisData:
|
||||
when incbinEnabled: toBytes genesisData
|
||||
else: genesisData,
|
||||
genesisDepositsSnapshot: genesisDepositsSnapshot)
|
||||
|
||||
except PresetIncompatibleError as err:
|
||||
|
|
Loading…
Reference in New Issue