Skip to content

Commit

Permalink
change ldflags to fix UT failures
Browse files Browse the repository at this point in the history
Signed-off-by: Ted Xu <[email protected]>
  • Loading branch information
tedxu committed Oct 29, 2024
1 parent fc61560 commit 77b1451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ LDFLAGS += $(addprefix -L, $(MILVUS_STORAGE_LD_DIR))
.PHONY: build

build:
CGO_CFLAGS="$(CPPFLAGS)" CGO_LDFLAGS="$(LDFLAGS)" go build ./...
CGO_CFLAGS="$(CPPFLAGS)" CGO_LDFLAGS="$(LDFLAGS) -lmilvus-storage" go build ./...

test:
CGO_CFLAGS="$(CPPFLAGS)" CGO_LDFLAGS="$(LDFLAGS) -Wl,-rpath,$(MILVUS_STORAGE_LD_DIR)" go test -timeout 30s ./...
CGO_CFLAGS="$(CPPFLAGS)" CGO_LDFLAGS="$(LDFLAGS) -Wl,-rpath,$(MILVUS_STORAGE_LD_DIR) -lmilvus-storage" go test -timeout 30s ./...
proto:
mkdir -p proto/manifest_proto
mkdir -p proto/schema_proto
Expand Down
2 changes: 0 additions & 2 deletions go/packed/packed.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
package packed

/*
#cgo LDFLAGS: -lmilvus-storage
#include <stdlib.h>
#include "milvus-storage/packed/reader_c.h"
#include "arrow/c/abi.h"
Expand Down

0 comments on commit 77b1451

Please sign in to comment.