提交 a74296a3 编写于 作者: J Jeff Olson 提交者: Kerra Olson

build: ifdef for mingw/non-mingw builds

上级 4942fe9c
......@@ -158,16 +158,19 @@ LIBUV_DEPS := $$(wildcard \
endif
ifdef CFG_WINDOWSY
LIBUV_OS := 'OS=mingw'
$$(LIBUV_LIB_$(1)): $$(LIBUV_DEPS)
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/libuv" \
OS=mingw \
V=$$(VERBOSE)
else
LIBUV_OS :=
endif
$$(LIBUV_LIB_$(1)): $$(LIBUV_DEPS)
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
CFLAGS="$$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/libuv" $$(LIBUV_OS) \
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/libuv" \
V=$$(VERBOSE)
endif
# These could go in rt.mk or rustllvm.mk, they're needed for both.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册