Skip to content

Commit

Permalink
Fix go wrapper make file.
Browse files Browse the repository at this point in the history
Check go executable available before using it.

Signed-off-by: Erez Geva <ErezGeva2@gmail.com>
  • Loading branch information
erezgeva committed Jan 10, 2025
1 parent 004021f commit 1f636fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wrappers/go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

GO_D:=wrappers/go
# Go environment
ifneq ($(call which,$(GO_BIN)),)
CGO_CXXFLAGS!=$(GO_BIN) env CGO_CXXFLAGS
CGO_CXXFLAGS+=$(CXXFLAGS_GO) -I$(PWD)/$(SRC) -I$(PWD)/$(PUB)
CGO_CXXFLAGS+=-I$(PWD)/$(GO_D)
Expand All @@ -24,6 +25,7 @@ ifdef GOARCH
export CXX CC GOARCH
export CGO_ENABLED=1
endif
endif #GO_BIN
go_SFLAGS+=-go

GO_SRC:=$(GO_D)/$(SWIG_LNAME)/$(SWIG_NAME).cpp
Expand Down

0 comments on commit 1f636fb

Please sign in to comment.