Skip to content

Commit

Permalink
Allow to compile client to webassembly
Browse files Browse the repository at this point in the history
We try to use ethereum contract in webassembly but it was failing due to
some symbols missing. To fix this I disabled compilation of some modules
for js tag.
  • Loading branch information
maxmati committed Aug 4, 2021
1 parent d3e3a46 commit 03e02c2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions accounts/abi/bind/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build !js

package bind

import (
Expand Down
2 changes: 1 addition & 1 deletion metrics/cpu_disabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build ios
// +build ios js

package metrics

Expand Down
2 changes: 1 addition & 1 deletion metrics/cpu_enabled.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build !ios
// +build !ios,!js

package metrics

Expand Down
2 changes: 2 additions & 0 deletions metrics/cpu_windows.go → metrics/cpu_no_syscall.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build windows js

package metrics

// getProcessCPUTime returns 0 on Windows as there is no system call to resolve
Expand Down
2 changes: 1 addition & 1 deletion metrics/cpu_syscall.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.

// +build !windows
// +build !windows,!js

package metrics

Expand Down

0 comments on commit 03e02c2

Please sign in to comment.