Skip to content

Commit adef3ec

Browse files
committed
---
yaml --- r: 14185 b: refs/heads/try c: 5fc2e9e h: refs/heads/master i: 14183: 959631f v: v3
1 parent b4a0ac5 commit adef3ec

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 8e55d3130a1b8eab3b80c85e71a2a800fb9442f0
5+
refs/heads/try: 5fc2e9e9ab9cf0329fb9f18c28c2df545e4e3edc
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ opt docs 1 "build documentation"
262262
opt optimize 1 "build optimized rust code"
263263
opt optimize-cxx 1 "build optimized C++ code"
264264
opt optimize-llvm 1 "build optimized LLVM"
265+
opt fast-make 0 "use .gitmodules as timestamp for submodule deps"
265266
opt manage-submodules 1 "let the build manage the git submodules"
266267
opt mingw-cross 0 "cross-compile for win32 using mingw"
267268
opt clang 0 "prefer clang to gcc for building the runtime"

branches/try/mk/llvm.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
2+
ifdef CFG_ENABLE_FAST_MAKE
3+
LLVM_DEPS := $(S)/.gitmodules
4+
else
15
# Recursive wildcard function
26
# http://blog.jgc.org/2011/07/gnu-make-recursive-wildcard-function.html
37
rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) \
48
$(filter $(subst *,%,$2),$d))
59

610
# This is just a rough approximation of LLVM deps
711
LLVM_DEPS=$(call rwildcard,$(CFG_LLVM_SRC_DIR),*cpp *hpp)
12+
endif
813

914
define DEF_LLVM_RULES
1015

branches/try/mk/rt.mk

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,18 @@ rt/$(1)/$(CFG_RUNTIME): $$(RUNTIME_OBJS_$(1)) $$(MKFILE_DEPS) \
158158
# FIXME: For some reason libuv's makefiles can't figure out the correct definition
159159
# of CC on the mingw I'm using, so we are explicitly using gcc. Also, we
160160
# have to list environment variables first on windows... mysterious
161-
$$(LIBUV_LIB_$(1)): $$(wildcard \
162-
$$(S)src/libuv/* \
163-
$$(S)src/libuv/*/* \
164-
$$(S)src/libuv/*/*/* \
165-
$$(S)src/libuv/*/*/*/*)
161+
162+
ifdef CFG_ENABLE_FAST_MAKE
163+
LIBUV_DEPS := $$(S)/.gitmodules
164+
else
165+
LIBUV_DEPS := $$(wildcard \
166+
$$(S)src/libuv/* \
167+
$$(S)src/libuv/*/* \
168+
$$(S)src/libuv/*/*/* \
169+
$$(S)src/libuv/*/*/*/*)
170+
endif
171+
172+
$$(LIBUV_LIB_$(1)): $$(LIBUV_DEPS)
166173
$$(Q)$$(MAKE) -C $$(S)mk/libuv/$$(LIBUV_ARCH_$(1))/$$(LIBUV_OSTYPE_$(1)) \
167174
CFLAGS="$$(LIBUV_FLAGS_$$(HOST_$(1)))" \
168175
LDFLAGS="$$(LIBUV_FLAGS_$$(HOST_$(1)))" \

0 commit comments

Comments
 (0)