This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 0656c69d fix(go/adbc/pkg): support Windows in Makefile (#1114)
0656c69d is described below

commit 0656c69da28e01f947ba3477fdcd338faf554a85
Author: Ruoxuan Wang <[email protected]>
AuthorDate: Wed Sep 27 20:39:41 2023 +0800

    fix(go/adbc/pkg): support Windows in Makefile (#1114)
---
 go/adbc/pkg/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/go/adbc/pkg/Makefile b/go/adbc/pkg/Makefile
index 7fca0d01..b791c5b7 100644
--- a/go/adbc/pkg/Makefile
+++ b/go/adbc/pkg/Makefile
@@ -15,10 +15,12 @@
 # limitations under the License.
 
 GO_BUILD=go build
+RM=rm
 ifeq ($(shell go env GOOS),linux)
        SUFFIX=so
 else ifeq ($(shell go env GOOS),windows)
        SUFFIX=dll
+       RM=del
 else
        SUFFIX=dylib
 endif
@@ -33,7 +35,7 @@ all: $(DRIVERS)
 
 libadbc_driver_%.$(SUFFIX): %
        $(GO_BUILD) -tags driverlib -o $@ -buildmode=c-shared -ldflags "-s -w" 
./$<
-       rm $(basename $@).h
+       $(RM) $(basename $@).h
 
 regenerate:
        go run gen/main.go -prefix FlightSQL -o ./flightsql/ -driver 
../driver/flightsql
@@ -41,4 +43,4 @@ regenerate:
        go run gen/main.go -prefix Snowflake -o ./snowflake/ -driver 
../driver/snowflake
 
 clean:
-       rm $(DRIVERS)
+       $(RM) $(DRIVERS)

Reply via email to