You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that solcx is tied to the platform it is running on, meaning that it will load and install binaries for the current platform.
For cross-platform use, it would be useful to request binaries for another platform, e.g. when preparing mounts for a virtual machine, or a docker image.
The following code achieves what I want (assuming that the target platform is Linux):
The assignment patches the internal function _get_os_name to return always "linux". Obviously, this not a clean solution, as it breaks when the private function is changed. Is there a better solution?
The text was updated successfully, but these errors were encountered:
Commit 486481d adds a function set_target_os. If the target os is different from the current host os, the images for the target os will be pulled, stored in .solx-targetos, and used.
Overview
It seems that
solcx
is tied to the platform it is running on, meaning that it will load and install binaries for the current platform.For cross-platform use, it would be useful to request binaries for another platform, e.g. when preparing mounts for a virtual machine, or a docker image.
The following code achieves what I want (assuming that the target platform is Linux):
The assignment patches the internal function
_get_os_name
to return always "linux". Obviously, this not a clean solution, as it breaks when the private function is changed. Is there a better solution?The text was updated successfully, but these errors were encountered: