Merge pull request #322 from ethereum/rust-dylib

rust: compile examples for cdylib and not dylib
This commit is contained in:
Alex Beregszaszi 2019-06-19 03:13:58 +02:00 committed by GitHub
commit ac16343b1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -176,8 +176,6 @@ jobs:
- run:
name: Test with evmc-vmtester
command: |
# FIXME: there is a linking issue with Cargo workspaces, this is to workaround it
export LD_LIBRARY_PATH="$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH"
~/build/test/evmc-vmtester target/debug/libexamplerustvm.so
workflows:

View File

@ -6,7 +6,7 @@ edition = "2018"
[lib]
name = "examplerustvm"
crate-type = ["staticlib", "dylib"]
crate-type = ["staticlib", "cdylib"]
[dependencies]
evmc-sys = { path = "../../bindings/rust/evmc-sys" }