Skip to content

Commit bf30ca7

Browse files
committed
---
yaml --- r: 79400 b: refs/heads/snap-stage3 c: 6b7b8f2 h: refs/heads/master v: v3
1 parent 3e5e5c8 commit bf30ca7

File tree

245 files changed

+7297
-5038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+7297
-5038
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 124eb2119c78651cfaaa7a046a101fa2e20f83ca
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 7b3dd32797994fbe833653618125e479d2ad3fc4
4+
refs/heads/snap-stage3: 6b7b8f2682780306860a38cdc7138f603e859fde
55
refs/heads/try: ac820906c0e53eab79a98ee64f7231f57c3887b4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/Makefile.in

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,19 @@ ALL_TARGET_RULES = $(foreach target,$(CFG_TARGET_TRIPLES), \
574574
$(foreach host,$(CFG_HOST_TRIPLES), \
575575
all-target-$(target)-host-$(host)))
576576

577-
all: $(ALL_TARGET_RULES) $(GENERATED) docs
577+
all: rustllvm/llvm-auto-clean-stamp \
578+
$(ALL_TARGET_RULES) $(GENERATED) docs
578579

579580
endif
580581

582+
# This is used to independently force an LLVM clean rebuild
583+
# when we changed something not otherwise captured by builtin
584+
# dependencies. In these cases, commit a change that touches
585+
# the stamp in the source dir.
586+
rustllvm/llvm-auto-clean-stamp: $(S)src/rustllvm/llvm-auto-clean-trigger
587+
$(Q)$(MAKE) clean-llvm
588+
touch $@
589+
581590

582591
######################################################################
583592
# Re-configuration

branches/snap-stage3/configure

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -664,29 +664,32 @@ do
664664
make_dir $i
665665
done
666666

667+
make_dir llvm
667668
for t in $CFG_HOST_TRIPLES
668669
do
669-
make_dir $t/llvm
670+
make_dir llvm/$t
670671
done
671672

673+
make_dir rustllvm
672674
for t in $CFG_HOST_TRIPLES
673675
do
674-
make_dir $t/rustllvm
676+
make_dir rustllvm/$t
675677
done
676678

679+
make_dir rt
677680
for t in $CFG_TARGET_TRIPLES
678681
do
679-
make_dir $t/rt
682+
make_dir rt/$t
680683
for s in 0 1 2 3
681684
do
682-
make_dir $t/rt/stage$s
685+
make_dir rt/$t/stage$s
683686
for i in \
684687
isaac linenoise sync test \
685688
arch/i386 arch/x86_64 arch/arm arch/mips \
686689
libuv libuv/src/ares libuv/src/eio libuv/src/ev \
687690
jemalloc
688691
do
689-
make_dir $t/rt/stage$s/$i
692+
make_dir rt/$t/stage$s/$i
690693
done
691694
done
692695
done
@@ -788,7 +791,7 @@ do
788791

789792
if [ -z $CFG_LLVM_ROOT ]
790793
then
791-
LLVM_BUILD_DIR=${CFG_BUILD_DIR}$t/llvm
794+
LLVM_BUILD_DIR=${CFG_BUILD_DIR}llvm/$t
792795
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]
793796
then
794797
LLVM_DBG_OPTS="--enable-debug-symbols --disable-optimized"

branches/snap-stage3/doc/rust.md

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ code_. They are defined in the same way as any other Rust function,
10381038
except that they have the `extern` modifier.
10391039

10401040
~~~
1041-
// Declares an extern fn, the ABI defaults to "C"
1041+
// Declares an extern fn, the ABI defaults to "C"
10421042
extern fn new_vec() -> ~[int] { ~[] }
10431043
10441044
// Declares an extern fn with "stdcall" ABI
@@ -1723,6 +1723,62 @@ Supported traits for `deriving` are:
17231723
each constituent field of the type must also implement `ToStr` and will have
17241724
`field.to_str()` invoked to build up the result.
17251725

1726+
### Stability
1727+
One can indicate the stability of an API using the following attributes:
1728+
1729+
* `deprecated`: This item should no longer be used, e.g. it has been
1730+
replaced. No guarantee of backwards-compatibility.
1731+
* `experimental`: This item was only recently introduced or is
1732+
otherwise in a state of flux. It may change significantly, or even
1733+
be removed. No guarantee of backwards-compatibility.
1734+
* `unstable`: This item is still under development, but requires more
1735+
testing to be considered stable. No guarantee of backwards-compatibility.
1736+
* `stable`: This item is considered stable, and will not change
1737+
significantly. Guarantee of backwards-compatibility.
1738+
* `frozen`: This item is very stable, and is unlikely to
1739+
change. Guarantee of backwards-compatibility.
1740+
* `locked`: This item will never change unless a serious bug is
1741+
found. Guarantee of backwards-compatibility.
1742+
1743+
These levels are directly inspired by
1744+
[Node.js' "stability index"](http://nodejs.org/api/documentation.html).
1745+
1746+
There are lints for disallowing items marked with certain levels:
1747+
`deprecated`, `experimental` and `unstable`; the first two will warn
1748+
by default. Items with not marked with a stability are considered to
1749+
be unstable for the purposes of the lint. One can give an optional
1750+
string that will be displayed when the lint flags the use of an item.
1751+
1752+
~~~ {.xfail-test}
1753+
#[warn(unstable)];
1754+
1755+
#[deprecated="replaced by `best`"]
1756+
fn bad() {
1757+
// delete everything
1758+
}
1759+
1760+
fn better() {
1761+
// delete fewer things
1762+
}
1763+
1764+
#[stable]
1765+
fn best() {
1766+
// delete nothing
1767+
}
1768+
1769+
fn main() {
1770+
bad(); // "warning: use of deprecated item: replaced by `best`"
1771+
1772+
better(); // "warning: use of unmarked item"
1773+
1774+
best(); // no warning
1775+
}
1776+
~~~
1777+
1778+
> **Note:** Currently these are only checked when applied to
1779+
> individual functions, structs, methods and enum variants, *not* to
1780+
> entire modules, traits, impls or enums themselves.
1781+
17261782
# Statements and expressions
17271783

17281784
Rust is _primarily_ an expression language. This means that most forms of

branches/snap-stage3/mk/clean.mk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,15 @@ clean: clean-misc $(CLEAN_STAGE_RULES)
3333

3434
clean-misc:
3535
@$(call E, cleaning)
36-
$(Q)find $(CFG_BUILD_TRIPLE)/rustllvm \
37-
$(CFG_BUILD_TRIPLE)/rt \
38-
$(CFG_BUILD_TRIPLE)/test \
36+
$(Q)find rustllvm rt $(CFG_BUILD_TRIPLE)/test \
3937
-name '*.[odasS]' -o \
4038
-name '*.so' -o \
4139
-name '*.dylib' -o \
4240
-name '*.dll' -o \
4341
-name '*.def' -o \
4442
-name '*.bc' \
4543
| xargs rm -f
46-
$(Q)find $(CFG_BUILD_TRIPLE)\
44+
$(Q)find rustllvm rt $(CFG_BUILD_TRIPLE)\
4745
-name '*.dSYM' \
4846
| xargs rm -Rf
4947
$(Q)rm -f $(RUNTIME_OBJS) $(RUNTIME_DEF)

branches/snap-stage3/mk/llvm.mk

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,12 @@ define DEF_LLVM_RULES
2424
# If CFG_LLVM_ROOT is defined then we don't build LLVM ourselves
2525
ifeq ($(CFG_LLVM_ROOT),)
2626

27-
LLVM_STAMP_$(1) = $$(CFG_LLVM_BUILD_DIR_$(1))/llvm-auto-clean-stamp
28-
29-
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS) $$(LLVM_STAMP_$(1))
27+
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS)
3028
@$$(call E, make: llvm)
3129
$$(Q)$$(MAKE) -C $$(CFG_LLVM_BUILD_DIR_$(1)) $$(CFG_LLVM_BUILD_ENV)
3230
$$(Q)touch $$(LLVM_CONFIG_$(1))
3331
endif
3432

35-
# This is used to independently force an LLVM clean rebuild
36-
# when we changed something not otherwise captured by builtin
37-
# dependencies. In these cases, commit a change that touches
38-
# the stamp in the source dir.
39-
$$(LLVM_STAMP_$(1)): $(S)src/rustllvm/llvm-auto-clean-trigger
40-
$(Q)$(MAKE) clean-llvm
41-
touch $$@
42-
4333
endef
4434

4535
$(foreach host,$(CFG_HOST_TRIPLES), \

branches/snap-stage3/mk/rt.mk

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ RUNTIME_CXXS_$(1)_$(2) := \
7676
rt/rust_upcall.cpp \
7777
rt/rust_uv.cpp \
7878
rt/rust_crate_map.cpp \
79-
rt/rust_log.cpp \
8079
rt/isaac/randport.cpp \
8180
rt/miniz.cpp \
8281
rt/memory_region.cpp \
@@ -92,64 +91,61 @@ RUNTIME_S_$(1)_$(2) := rt/arch/$$(HOST_$(1))/_context.S \
9291
rt/arch/$$(HOST_$(1))/ccall.S \
9392
rt/arch/$$(HOST_$(1))/record_sp.S
9493

95-
RT_OUTPUT_DIR_$(1) := $(1)/rt
96-
RT_BUILD_DIR_$(1)_$(2) := $$(RT_OUTPUT_DIR_$(1))/stage$(2)
97-
9894
ifeq ($$(CFG_WINDOWSY_$(1)), 1)
9995
LIBUV_OSTYPE_$(1)_$(2) := win
100-
LIBUV_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/libuv/libuv.a
101-
JEMALLOC_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc/lib/jemalloc.lib
96+
LIBUV_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/libuv/libuv.a
97+
JEMALLOC_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/jemalloc/lib/jemalloc.lib
10298
else ifeq ($(OSTYPE_$(1)), apple-darwin)
10399
LIBUV_OSTYPE_$(1)_$(2) := mac
104-
LIBUV_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/libuv/libuv.a
105-
JEMALLOC_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc/lib/libjemalloc_pic.a
100+
LIBUV_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/libuv/libuv.a
101+
JEMALLOC_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/jemalloc/lib/libjemalloc_pic.a
106102
else ifeq ($(OSTYPE_$(1)), unknown-freebsd)
107103
LIBUV_OSTYPE_$(1)_$(2) := unix/freebsd
108-
LIBUV_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/libuv/libuv.a
109-
JEMALLOC_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc/lib/libjemalloc_pic.a
104+
LIBUV_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/libuv/libuv.a
105+
JEMALLOC_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/jemalloc/lib/libjemalloc_pic.a
110106
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
111107
LIBUV_OSTYPE_$(1)_$(2) := unix/android
112-
LIBUV_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/libuv/libuv.a
113-
JEMALLOC_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc/lib/libjemalloc_pic.a
108+
LIBUV_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/libuv/libuv.a
109+
JEMALLOC_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/jemalloc/lib/libjemalloc_pic.a
114110
else
115111
LIBUV_OSTYPE_$(1)_$(2) := unix/linux
116-
LIBUV_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/libuv/libuv.a
117-
JEMALLOC_LIB_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc/lib/libjemalloc_pic.a
112+
LIBUV_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/libuv/libuv.a
113+
JEMALLOC_LIB_$(1)_$(2) := rt/$(1)/stage$(2)/jemalloc/lib/libjemalloc_pic.a
118114
endif
119115

120-
RUNTIME_DEF_$(1)_$(2) := $$(RT_OUTPUT_DIR_$(1))/rustrt$$(CFG_DEF_SUFFIX_$(1))
116+
RUNTIME_DEF_$(1)_$(2) := rt/rustrt$(CFG_DEF_SUFFIX_$(1))
121117
RUNTIME_INCS_$(1)_$(2) := -I $$(S)src/rt -I $$(S)src/rt/isaac -I $$(S)src/rt/uthash \
122118
-I $$(S)src/rt/arch/$$(HOST_$(1)) \
123119
-I $$(S)src/rt/linenoise \
124120
-I $$(S)src/libuv/include
125-
RUNTIME_OBJS_$(1)_$(2) := $$(RUNTIME_CXXS_$(1)_$(2):rt/%.cpp=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \
126-
$$(RUNTIME_CS_$(1)_$(2):rt/%.c=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \
127-
$$(RUNTIME_S_$(1)_$(2):rt/%.S=$$(RT_BUILD_DIR_$(1)_$(2))/%.o)
121+
RUNTIME_OBJS_$(1)_$(2) := $$(RUNTIME_CXXS_$(1)_$(2):rt/%.cpp=rt/$(1)/stage$(2)/%.o) \
122+
$$(RUNTIME_CS_$(1)_$(2):rt/%.c=rt/$(1)/stage$(2)/%.o) \
123+
$$(RUNTIME_S_$(1)_$(2):rt/%.S=rt/$(1)/stage$(2)/%.o)
128124
ALL_OBJ_FILES += $$(RUNTIME_OBJS_$(1)_$(2))
129125

130-
MORESTACK_OBJ_$(1)_$(2) := $$(RT_BUILD_DIR_$(1)_$(2))/arch/$$(HOST_$(1))/morestack.o
126+
MORESTACK_OBJ_$(1)_$(2) := rt/$(1)/stage$(2)/arch/$$(HOST_$(1))/morestack.o
131127
ALL_OBJ_FILES += $$(MORESTACK_OBJS_$(1)_$(2))
132128

133-
$$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.cpp $$(MKFILE_DEPS)
129+
rt/$(1)/stage$(2)/%.o: rt/%.cpp $$(MKFILE_DEPS)
134130
@$$(call E, compile: $$@)
135131
$$(Q)$$(call CFG_COMPILE_CXX_$(1), $$@, $$(RUNTIME_INCS_$(1)_$(2)) \
136132
$$(SNAP_DEFINES) $$(RUNTIME_CXXFLAGS_$(1)_$(2))) $$<
137133

138-
$$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.c $$(MKFILE_DEPS)
134+
rt/$(1)/stage$(2)/%.o: rt/%.c $$(MKFILE_DEPS)
139135
@$$(call E, compile: $$@)
140136
$$(Q)$$(call CFG_COMPILE_C_$(1), $$@, $$(RUNTIME_INCS_$(1)_$(2)) \
141137
$$(SNAP_DEFINES) $$(RUNTIME_CFLAGS_$(1)_$(2))) $$<
142138

143-
$$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.S $$(MKFILE_DEPS) \
139+
rt/$(1)/stage$(2)/%.o: rt/%.S $$(MKFILE_DEPS) \
144140
$$(LLVM_CONFIG_$$(CFG_BUILD_TRIPLE))
145141
@$$(call E, compile: $$@)
146142
$$(Q)$$(call CFG_ASSEMBLE_$(1),$$@,$$<)
147143

148-
$$(RT_BUILD_DIR_$(1)_$(2))/arch/$$(HOST_$(1))/libmorestack.a: $$(MORESTACK_OBJ_$(1)_$(2))
144+
rt/$(1)/stage$(2)/arch/$$(HOST_$(1))/libmorestack.a: $$(MORESTACK_OBJ_$(1)_$(2))
149145
@$$(call E, link: $$@)
150146
$$(Q)$(AR_$(1)) rcs $$@ $$<
151147

152-
$$(RT_BUILD_DIR_$(1)_$(2))/$(CFG_RUNTIME_$(1)): $$(RUNTIME_OBJS_$(1)_$(2)) $$(MKFILE_DEPS) \
148+
rt/$(1)/stage$(2)/$(CFG_RUNTIME_$(1)): $$(RUNTIME_OBJS_$(1)_$(2)) $$(MKFILE_DEPS) \
153149
$$(RUNTIME_DEF_$(1)_$(2)) $$(LIBUV_LIB_$(1)_$(2)) $$(JEMALLOC_LIB_$(1)_$(2))
154150
@$$(call E, link: $$@)
155151
$$(Q)$$(call CFG_LINK_CXX_$(1),$$@, $$(RUNTIME_OBJS_$(1)_$(2)) \
@@ -175,7 +171,7 @@ endif
175171
ifdef CFG_WINDOWSY_$(1)
176172
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
177173
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
178-
builddir_name="$$(CFG_BUILD_DIR)/$$(RT_BUILD_DIR_$(1)_$(2))/libuv" \
174+
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
179175
OS=mingw \
180176
V=$$(VERBOSE)
181177
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
@@ -189,7 +185,7 @@ $$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
189185
AR="$$(AR_$(1))" \
190186
PLATFORM=android \
191187
BUILDTYPE=Release \
192-
builddir_name="$$(CFG_BUILD_DIR)/$$(RT_BUILD_DIR_$(1)_$(2))/libuv" \
188+
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
193189
host=android OS=linux \
194190
V=$$(VERBOSE)
195191
else
@@ -200,59 +196,59 @@ $$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
200196
CC="$$(CC_$(1))" \
201197
CXX="$$(CXX_$(1))" \
202198
AR="$$(AR_$(1))" \
203-
builddir_name="$$(CFG_BUILD_DIR)/$$(RT_BUILD_DIR_$(1)_$(2))/libuv" \
199+
builddir_name="$$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/libuv" \
204200
V=$$(VERBOSE)
205201
endif
206202

207203
ifeq ($(OSTYPE_$(1)), linux-androideabi)
208204
$$(JEMALLOC_LIB_$(1)_$(2)):
209-
cd $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc; $(S)src/rt/jemalloc/configure \
205+
cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure \
210206
--disable-experimental --build=$(CFG_BUILD_TRIPLE) --host=$(1) --disable-tls \
211207
EXTRA_CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
212208
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
213209
CC="$$(CC_$(1))" \
214210
CXX="$$(CXX_$(1))" \
215211
AR="$$(AR_$(1))"
216-
$$(Q)$$(MAKE) -C $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc
212+
$$(Q)$$(MAKE) -C $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc
217213
else
218214
$$(JEMALLOC_LIB_$(1)_$(2)):
219-
cd $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc; $(S)src/rt/jemalloc/configure \
215+
cd $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc; $(S)src/rt/jemalloc/configure \
220216
--disable-experimental --build=$(CFG_BUILD_TRIPLE) --host=$(1) \
221217
EXTRA_CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
222218
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
223219
CC="$$(CC_$(1))" \
224220
CXX="$$(CXX_$(1))" \
225221
AR="$$(AR_$(1))"
226-
$$(Q)$$(MAKE) -C $$(RT_BUILD_DIR_$(1)_$(2))/jemalloc
222+
$$(Q)$$(MAKE) -C $$(CFG_BUILD_DIR)/rt/$(1)/stage$(2)/jemalloc
227223
endif
228224

229225

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

232228
# This regexp has a single $, escaped twice
233-
$(1)/%.bsd.def: %.def.in $$(MKFILE_DEPS)
229+
%.bsd.def: %.def.in $$(MKFILE_DEPS)
234230
@$$(call E, def: $$@)
235231
$$(Q)echo "{" > $$@
236232
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
237233
$$(Q)echo "};" >> $$@
238234

239-
$(1)/%.linux.def: %.def.in $$(MKFILE_DEPS)
235+
%.linux.def: %.def.in $$(MKFILE_DEPS)
240236
@$$(call E, def: $$@)
241237
$$(Q)echo "{" > $$@
242238
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
243239
$$(Q)echo "};" >> $$@
244240

245-
$(1)/%.darwin.def: %.def.in $$(MKFILE_DEPS)
241+
%.darwin.def: %.def.in $$(MKFILE_DEPS)
246242
@$$(call E, def: $$@)
247243
$$(Q)sed 's/^./_&/' $$< > $$@
248244

249-
$(1)/%.android.def: %.def.in $$(MKFILE_DEPS)
245+
%.android.def: %.def.in $$(MKFILE_DEPS)
250246
@$$(call E, def: $$@)
251247
$$(Q)echo "{" > $$@
252248
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
253249
$$(Q)echo "};" >> $$@
254250

255-
$(1)/%.mingw32.def: %.def.in $$(MKFILE_DEPS)
251+
%.mingw32.def: %.def.in $$(MKFILE_DEPS)
256252
@$$(call E, def: $$@)
257253
$$(Q)echo LIBRARY $$* > $$@
258254
$$(Q)echo EXPORTS >> $$@

0 commit comments

Comments
 (0)