Skip to content

Commit

Permalink
evmc: make evmc CFLAGS to use include dir
Browse files Browse the repository at this point in the history
moving loader and header dependencies
to include/ dir, following steps
found here:
ethereum/evmc@65d11a2

This might help to resolve issue with
go mod working with core-geth as a
dependency.

Signed-off-by: meows <b5c6@protonmail.com>
  • Loading branch information
meowsbits committed Jul 30, 2020
1 parent 56e3477 commit 361ef38
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion evmc/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 evmc/bindings/go/evmc/evmc.h

This file was deleted.

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

This file was deleted.

2 changes: 1 addition & 1 deletion evmc/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 evmc/bindings/go/evmc/loader.c

This file was deleted.

4 changes: 4 additions & 0 deletions evmc/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 evmc/bindings/go/evmc/loader.h

This file was deleted.

0 comments on commit 361ef38

Please sign in to comment.