Skip to content

Commit 3c50c56

Browse files
committed
Makefile: use qcow2 tag by default if available
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
1 parent d7aeaee commit 3c50c56

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ endif
125125

126126
# Use mirage-block for pwritev|preadv
127127
HAVE_OCAML_QCOW := $(shell if ocamlfind query qcow uri >/dev/null 2>/dev/null ; then echo YES ; else echo NO; fi)
128-
# included 'qcow2' in the $GO_BUILD_TAGS, and $HAVE_OCAML_QCOW is YES
129-
ifneq (,$(findstring qcow2,$(GO_BUILD_TAGS)))
130128
ifeq ($(HAVE_OCAML_QCOW),YES)
131129
LIBEV_FILE=/usr/local/lib/libev.a
132130
LIBEV=$(shell if test -e $(LIBEV_FILE) ; then echo $(LIBEV_FILE) ; fi )
@@ -146,9 +144,9 @@ OCAML_LDLIBS := -L $(OCAML_WHERE) \
146144
-lasmrun -lbigarray -lunix
147145
CGO_CFLAGS += -DHAVE_OCAML=1 -DHAVE_OCAML_QCOW=1 -DHAVE_OCAML=1 -I$(OCAML_WHERE)
148146
CGO_LDFLAGS += $(OCAML_LDLIBS)
147+
GO_BUILD_TAGS += qcow2
149148
bin/docker-machine-driver-xhyve: vendor/github.com/zchee/libhyperkit/mirage_block_ocaml.o
150149
endif
151-
endif
152150

153151

154152
GO_BUILD_FLAG += -tags='$(GO_BUILD_TAGS)'

0 commit comments

Comments
 (0)