File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,27 +24,27 @@ build: clean linux darwin windows
24
24
25
25
nvidia_linux :
26
26
cd ${BUILD_DIR} ; \
27
- GOOS=linux GOARCH=${GOARCH} go build ${LDFLAGS} -tags " ${NVIDIA} " -o ${BIN_DIR} /${BINARY} -${NVIDIA} -linux-${GOARCH} . ; \
27
+ GOOS=linux GOARCH=${GOARCH} go build -trimpath ${LDFLAGS} -tags " ${NVIDIA} " -o ${BIN_DIR} /${BINARY} -${NVIDIA} -linux-${GOARCH} . ; \
28
28
cd - > /dev/null
29
29
30
30
nvidia_linux_no_ldflags :
31
31
cd ${BUILD_DIR} ; \
32
- GOOS=linux GOARCH=${GOARCH} go build -tags " ${NVIDIA} " -o ${BIN_DIR} /${BINARY} -${NVIDIA} -linux-${GOARCH} . ; \
32
+ GOOS=linux GOARCH=${GOARCH} go build -trimpath - tags " ${NVIDIA} " -o ${BIN_DIR} /${BINARY} -${NVIDIA} -linux-${GOARCH} . ; \
33
33
cd - > /dev/null
34
34
35
35
nvidia_darwin :
36
36
cd ${BUILD_DIR} ; \
37
- GOOS=darwin GOARCH=${GOARCH} go build ${LDFLAGS} -tags " ${NVIDIA} " -o ${BIN_DIR} /${BINARY} -${NVIDIA} -darwin-${GOARCH} . ; \
37
+ GOOS=darwin GOARCH=${GOARCH} go build -trimpath ${LDFLAGS} -tags " ${NVIDIA} " -o ${BIN_DIR} /${BINARY} -${NVIDIA} -darwin-${GOARCH} . ; \
38
38
cd - > /dev/null
39
39
40
40
nvidia_windows :
41
41
cd ${BUILD_DIR} ; \
42
- GOOS=windows GOARCH=${GOARCH} go build ${LDFLAGS} -tags " ${NVIDIA} " -o ${BIN_DIR} /${BINARY} -${NVIDIA} -windows-${GOARCH} .exe . ; \
42
+ GOOS=windows GOARCH=${GOARCH} go build -trimpath ${LDFLAGS} -tags " ${NVIDIA} " -o ${BIN_DIR} /${BINARY} -${NVIDIA} -windows-${GOARCH} .exe . ; \
43
43
cd - > /dev/null
44
44
45
45
mock_linux :
46
46
cd ${BUILD_DIR} ; \
47
- GOOS=linux GOARCH=${GOARCH} go build ${LDFLAGS} -tags " ${MOCK} " -o ${BIN_DIR} /${BINARY} -${MOCK} -linux-${GOARCH} . ; \
47
+ GOOS=linux GOARCH=${GOARCH} go build -trimpath ${LDFLAGS} -tags " ${MOCK} " -o ${BIN_DIR} /${BINARY} -${MOCK} -linux-${GOARCH} . ; \
48
48
cd - > /dev/null
49
49
50
50
docker_build :
You can’t perform that action at this time.
0 commit comments