Skip to content

Commit c329700

Browse files
committed
---
yaml --- r: 224234 b: refs/heads/beta c: 610d1e3 h: refs/heads/master v: v3
1 parent 3f034ba commit c329700

File tree

150 files changed

+1321
-5158
lines changed

Some content is hidden

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

150 files changed

+1321
-5158
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: f0b7ede78a25686875d1028251f15b915fd0e6e8
26+
refs/heads/beta: 610d1e312f4d8ec13755015c69d5ae410039b06a
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/mk/rt.mk

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ NATIVE_DEPS_miniz_$(1) = miniz.c
5454
NATIVE_DEPS_rust_builtin_$(1) := rust_builtin.c \
5555
rust_android_dummy.c
5656
NATIVE_DEPS_rustrt_native_$(1) := arch/$$(HOST_$(1))/record_sp.S
57+
ifeq ($$(findstring msvc,$(1)),msvc)
58+
ifeq ($$(findstring i686,$(1)),i686)
59+
NATIVE_DEPS_rustrt_native_$(1) += rust_try_msvc_32.ll
60+
else
61+
NATIVE_DEPS_rustrt_native_$(1) += rust_try_msvc_64.ll
62+
endif
63+
else
64+
NATIVE_DEPS_rustrt_native_$(1) += rust_try.ll
65+
endif
5766
NATIVE_DEPS_rust_test_helpers_$(1) := rust_test_helpers.c
5867
NATIVE_DEPS_morestack_$(1) := arch/$$(HOST_$(1))/morestack.S
5968

@@ -67,6 +76,14 @@ NATIVE_DEPS_morestack_$(1) := arch/$$(HOST_$(1))/morestack.S
6776

6877
RT_OUTPUT_DIR_$(1) := $(1)/rt
6978

79+
$$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.ll $$(MKFILE_DEPS) \
80+
$$(LLVM_CONFIG_$$(CFG_BUILD))
81+
@mkdir -p $$(@D)
82+
@$$(call E, compile: $$@)
83+
$$(Q)$$(LLC_$$(CFG_BUILD)) $$(CFG_LLC_FLAGS_$(1)) \
84+
-filetype=obj -mtriple=$$(CFG_LLVM_TARGET_$(1)) \
85+
-relocation-model=pic -o $$@ $$<
86+
7087
$$(RT_OUTPUT_DIR_$(1))/%.o: $(S)src/rt/%.c $$(MKFILE_DEPS)
7188
@mkdir -p $$(@D)
7289
@$$(call E, compile: $$@)
@@ -105,6 +122,7 @@ define THIRD_PARTY_LIB
105122
OBJS_$(2)_$(1) := $$(NATIVE_DEPS_$(2)_$(1):%=$$(RT_OUTPUT_DIR_$(1))/%)
106123
OBJS_$(2)_$(1) := $$(OBJS_$(2)_$(1):.c=.o)
107124
OBJS_$(2)_$(1) := $$(OBJS_$(2)_$(1):.cpp=.o)
125+
OBJS_$(2)_$(1) := $$(OBJS_$(2)_$(1):.ll=.o)
108126
OBJS_$(2)_$(1) := $$(OBJS_$(2)_$(1):.S=.o)
109127
NATIVE_$(2)_$(1) := $$(call CFG_STATIC_LIB_NAME_$(1),$(2))
110128
$$(RT_OUTPUT_DIR_$(1))/$$(NATIVE_$(2)_$(1)): $$(OBJS_$(2)_$(1))

branches/beta/src/doc/reference.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,10 +1636,6 @@ The type of a function declared in an extern block is `extern "abi" fn(A1, ...,
16361636
An) -> R`, where `A1...An` are the declared types of its arguments and `R` is
16371637
the declared return type.
16381638

1639-
It is valid to add the `link` attribute on an empty extern block. You can use
1640-
this to satisfy the linking requirements of extern blocks elsewhere in your code
1641-
(including upstream crates) instead of adding the attribute to each extern block.
1642-
16431639
## Visibility and Privacy
16441640

16451641
These two terms are often used interchangeably, and what they are attempting to

branches/beta/src/doc/rust.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,6 @@ a > code {
221221
color: #428BCA;
222222
}
223223

224-
.section-header > a > code {
225-
color: #8D1A38;
226-
}
227-
228224
/* Code highlighting */
229225
pre.rust .kw { color: #8959A8; }
230226
pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }

branches/beta/src/doc/trpl/SUMMARY.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* [Iterators](iterators.md)
1717
* [Concurrency](concurrency.md)
1818
* [Error Handling](error-handling.md)
19-
* [Choosing your Guarantees](choosing-your-guarantees.md)
2019
* [FFI](ffi.md)
2120
* [Borrow and AsRef](borrow-and-asref.md)
2221
* [Release Channels](release-channels.md)
@@ -64,7 +63,7 @@
6463
* [No stdlib](no-stdlib.md)
6564
* [Intrinsics](intrinsics.md)
6665
* [Lang items](lang-items.md)
67-
* [Advanced linking](advanced-linking.md)
66+
* [Link args](link-args.md)
6867
* [Benchmark Tests](benchmark-tests.md)
6968
* [Box Syntax and Patterns](box-syntax-and-patterns.md)
7069
* [Slice Patterns](slice-patterns.md)

branches/beta/src/doc/trpl/advanced-linking.md

Lines changed: 0 additions & 151 deletions
This file was deleted.

0 commit comments

Comments
 (0)