Skip to content

Commit

Permalink
api: support platform-independent API library path (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat authored Aug 3, 2023
1 parent 816ebd7 commit 85976c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/api/execute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ using namespace silkworm;
using namespace silkworm::snapshot;
using namespace silkworm::cmd::common;

const char* kSilkwormApiLibPath = "../../silkworm/api/libsilkworm_api.dylib";
const char* kSilkwormApiLibUndecoratedPath = "../../silkworm/api/silkworm_api";
const char* kSilkwormInitSymbol = "silkworm_init";
const char* kSilkwormAddSnapshotSymbol = "silkworm_add_snapshot";
const char* kSilkwormExecuteBlocksSymbol = "silkworm_execute_blocks";
const char* kSilkwormFiniSymbol = "silkworm_fini";

const auto kSilkwormApiLibPath{boost::dll::shared_library::decorate(kSilkwormApiLibUndecoratedPath)};

//! Function signature for silkworm_init C API
using SilkwormInitSig = int(SilkwormHandle**);

Expand Down

0 comments on commit 85976c1

Please sign in to comment.