Skip to content

Commit 59e1359

Browse files
committed
Makefile: Use 'go tool' instead of manual path building
1 parent 0069775 commit 59e1359

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
CFORGO = c-for-go
2-
CGO = $(shell go env GOTOOLDIR)/cgo
32

43
all: generate
54

@@ -17,7 +16,7 @@ generate:
1716
rocm_smi/rocm_smi.h.orig > rocm_smi/rocm_smi.h
1817
cd pkg/rocm_smi && $(CFORGO) -ccincl --ccdefs ../../rocm_smi.yml
1918
cd pkg/rocm_smi && \
20-
$(CGO) -godefs types.go > types.go.expand && \
19+
go tool cgo -godefs types.go > types.go.expand && \
2120
mv types.go.expand types.go && \
2221
rm -f _cgo_2.o
2322
cd pkg/rocm_smi && \

0 commit comments

Comments
 (0)