Skip to content

Commit

Permalink
go: Add go.mod and modules support
Browse files Browse the repository at this point in the history
  • Loading branch information
mandrigin authored and chfast committed May 15, 2020
1 parent 2cba641 commit 65d11a2
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Please visit the [documentation].
| ----------------------------- | --------------------- | ------------------------------ | -------------------
| **C** | C99, C11 | GCC 6+, clang 3.8+, MSVC 2015+ | Host- and VM-side
| **C++** | C++11, C++14, C++17 | GCC 6+, clang 3.8+, MSVC 2015+ | Host- and VM-side
| **Go** _(bindings)_ | 1.9 - 1.12 | | Host-side only
| **Go** _(bindings)_ | 1.11 - 1.14 (modules) | | Host-side only
| **Rust** _(bindings)_[¹](#n1) | 2018 edition | 1.37.0 and newer | VM-side only
| **Java** _(bindings)_ | 11 | | Host-side only

Expand Down
2 changes: 1 addition & 1 deletion bindings/go/evmc/evmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package evmc

/*
#cgo CFLAGS: -I${SRCDIR}/.. -Wall -Wextra
#cgo CFLAGS: -I${SRCDIR}/../../../include -Wall -Wextra
#cgo !windows LDFLAGS: -ldl
#include <evmc/evmc.h>
Expand Down
1 change: 0 additions & 1 deletion bindings/go/evmc/evmc.h

This file was deleted.

1 change: 0 additions & 1 deletion bindings/go/evmc/helpers.h

This file was deleted.

2 changes: 1 addition & 1 deletion bindings/go/evmc/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package evmc

/*
#cgo CFLAGS: -I${SRCDIR}/.. -Wall -Wextra -Wno-unused-parameter
#cgo CFLAGS: -I${SRCDIR}/../../../include -Wall -Wextra -Wno-unused-parameter
#include <evmc/evmc.h>
#include <evmc/helpers.h>
Expand Down
1 change: 0 additions & 1 deletion bindings/go/evmc/loader.c

This file was deleted.

4 changes: 4 additions & 0 deletions bindings/go/evmc/loader.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Include evmc::loader in the Go package.
* The "go build" builds all additional C/C++ files in the Go package directory,
* but symbolic links are ignored so #include is used instead. */
#include "../../../lib/loader/loader.c"
1 change: 0 additions & 1 deletion bindings/go/evmc/loader.h

This file was deleted.

3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/ethereum/evmc/v7

go 1.11

0 comments on commit 65d11a2

Please sign in to comment.