Skip to content

Commit 45a1315

Browse files
committed
[Chore] 📌 Build TrimPath
1 parent f5cd629 commit 45a1315

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,27 @@ build: clean linux darwin windows
2424

2525
nvidia_linux:
2626
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} . ; \
2828
cd - >/dev/null
2929

3030
nvidia_linux_no_ldflags:
3131
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} . ; \
3333
cd - >/dev/null
3434

3535
nvidia_darwin:
3636
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} . ; \
3838
cd - >/dev/null
3939

4040
nvidia_windows:
4141
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 . ; \
4343
cd - >/dev/null
4444

4545
mock_linux:
4646
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} . ; \
4848
cd - >/dev/null
4949

5050
docker_build:

0 commit comments

Comments
 (0)