New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solc: 0.5.7 -> 0.5.8 #60539
solc: 0.5.7 -> 0.5.8 #60539
Conversation
@GrahamcOfBorg build solc |
@sifmelcara Could you keep shared libraries, please. May be in .lib location. It’s required for http://hackage.haskell.org/package/web3 package. |
Sorry, could you elaborate a little bit more? I can install web3 without installing solc just fine (using Thanks! |
As you can see, hs-web3 has special flag for enabling experimental FFI bindings to libsolidity. |
22a3839
to
c42d52b
Compare
Ah, ok. So I made shared library build optional and tested it using Now I also enabled tests on darwin, but I have no MacOS machine to try if the tests works correctly on it. @Lassulus could you ask @GrahamcOfBorg to build it again? Thank you so much. |
@GrahamcOfBorg build solc |
@sifmelcara Overriding isn’t easy to use in practice outside of nix files, in stack for example. What’s about solc.lib destination for shared libraries? |
Hmm... IMHO we should not build But if you want, we can keep building shared library by default for now. Then we can make |
In my personal opinion linking is better than process spawning. Ok, if you want - do it. I’ll rewrite compiler module in the future. |
c42d52b
to
7a8d99b
Compare
Force pushed. I kept the configurations besides adding tests, so this should work for Yes of course linking is better than process spawning. I just feels a little bit annoying that it require non-nix users to apply custom patch ( |
Basically I focus on stack build with nix integration for experimental features. Thank you for your work @sifmelcara. |
@GrahamcOfBorg build solc |
Fails on Darwin:
|
Hmm.. that's strange. This PR only adds tests on linux platform and updates Maybe the first thing we should do is to ask @GrahamcOfBorg to perform build on Darwin to confirm the issue? As I don't have MacOS to test it. |
@sifmelcara My guess is we need to use |
No, that didn't work |
I just look through solidity's |
@akru are you ok with not applying shared library install patch on MacOS? |
@sifmelcara yes, when supporting it makes a trouble we can just disable it for Darwin. UPDATE: I think it’s not so bad idea to move shared libs to separate package, for example with ‘libsolidity’ name. We can set Linux only target for it. |
Also add more complete set of tests and disable shared build on MacOS.
7a8d99b
to
b5b38b1
Compare
Rebased and disabled shared library build on Darwin. @Lassulus could you trigger @GrahamcOfBorg 's darwin build to confirm everything is ok? Thank you!
Maybe we should ask upstream to provide official support of shared library build (to provide a way to use the compiler as a library). I can ping you when I open an upstream issue. |
@sifmelcara Ok @GrahamcOfBorg build solc |
@akru IIRC you need to be trusted by @GrahamcOfBorg to build on MacOS. Can someone do that to confirm the build is ok on MacOS? |
@GrahamcOfBorg build solc |
Everything looks fine, let's merge? |
Things done
solc
's internal components... they are not meant to be used by compiler users.checkPhase
, this time I enables all tests except tests that need IPC or SMT.ncurses
andpython2
added as dependency for the test scripts.cc maintainers @dbrock @akru @lionello
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)