Skip to content

Commit a74296a

Browse files
olsonjefferyKerra Olson
authored andcommitted
build: ifdef for mingw/non-mingw builds
1 parent 4942fe9 commit a74296a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

mk/rt.mk

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,19 @@ LIBUV_DEPS := $$(wildcard \
158158
endif
159159

160160
ifdef CFG_WINDOWSY
161-
LIBUV_OS := 'OS=mingw'
161+
$$(LIBUV_LIB_$(1)): $$(LIBUV_DEPS)
162+
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
163+
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/libuv" \
164+
OS=mingw \
165+
V=$$(VERBOSE)
162166
else
163-
LIBUV_OS :=
164-
endif
165-
166167
$$(LIBUV_LIB_$(1)): $$(LIBUV_DEPS)
167168
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
168169
CFLAGS="$$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
169-
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/libuv" $$(LIBUV_OS) \
170+
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/libuv" \
170171
V=$$(VERBOSE)
172+
endif
173+
171174

172175
# These could go in rt.mk or rustllvm.mk, they're needed for both.
173176

0 commit comments

Comments
 (0)