Skip to content

Commit 528e5c1

Browse files
committed
---
yaml --- r: 6778 b: refs/heads/master c: c758e11 h: refs/heads/master v: v3
1 parent c57f89b commit 528e5c1

35 files changed

+256
-355
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b7e30bc4c5852fb7f840f2abd472fa1e68dcfd52
2+
refs/heads/master: c758e11fd37f54ddfa9a628466fde7c92c027947

trunk/LICENSE.txt

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,32 @@ included:
223223
details.
224224

225225

226+
* Additional copyright may be retained by contributors other
227+
than Mozilla or the parties enumerated in this file. Such
228+
copyright can be determined on a case-by-case basis by
229+
examining the author of each portion of a file in the
230+
revision-control commit records of the project, or by
231+
consulting representative comments claiming copyright
232+
ownership for a file.
233+
234+
For example, the text:
235+
236+
"Copyright (c) 2011 Google Inc."
237+
238+
appears in some files, and these files thereby denote
239+
that their author and copyright-holder is Google Inc.
240+
241+
In all such cases, the absence of explicit licensing text
242+
indicates that the contributor chose to license their
243+
work for distribution under identical terms to those
244+
Mozilla has chosen for the collective work, enumerated
245+
below. The only difference is the retention of copyright
246+
itself, held by the contributor.
247+
248+
226249
The remaining code and documentation in the collective work
227250
presented here, as well as the collective work itslf, is
228-
distributed under the following terms:
251+
distributed under the following terms ("The Rust License"):
229252

230253
Copyright (c) 2006-2011 Graydon Hoare
231254
Copyright (c) 2009-2011 Mozilla Foundation

trunk/Makefile.in

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,19 +289,31 @@ ifdef CFG_DISABLE_SHAREDSTD
289289
$$(HLIB$(1)_H_$(3))/libcore.rlib
290290
TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
291291
$$(TLIB$(1)_T_$(2)_H_$(3))/libcore.rlib
292+
292293
HSTDLIB_DEFAULT$(1)_H_$(3) = \
293294
$$(HLIB$(1)_H_$(3))/libstd.rlib
294295
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
295296
$$(TLIB$(1)_T_$(2)_H_$(3))/libstd.rlib
297+
298+
HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
299+
$$(HLIB$(1)_H_$(3))/librustc.rlib
300+
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
301+
$$(TLIB$(1)_T_$(2)_H_$(3))/librustc.rlib
296302
else
297303
HCORELIB_DEFAULT$(1)_H_$(3) = \
298304
$$(HLIB$(1)_H_$(3))/$(CFG_CORELIB)
299305
TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
300306
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_CORELIB)
307+
301308
HSTDLIB_DEFAULT$(1)_H_$(3) = \
302309
$$(HLIB$(1)_H_$(3))/$(CFG_STDLIB)
303310
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
304311
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB)
312+
313+
HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
314+
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTC)
315+
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
316+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC)
305317
endif
306318

307319
# Preqrequisites for using the stageN compiler
@@ -311,6 +323,7 @@ HSREQ$(1)_H_$(3) = \
311323
$$(HLIB$(1)_H_$(3))/$$(CFG_RUSTLLVM) \
312324
$$(HCORELIB_DEFAULT$(1)_H_$(3)) \
313325
$$(HSTDLIB_DEFAULT$(1)_H_$(3)) \
326+
$$(HLIBRUSTC_DEFAULT$(1)_H_$(3)) \
314327
$$(MKFILE_DEPS)
315328

316329
# Prerequisites for using the stageN compiler to build target artifacts
@@ -324,7 +337,8 @@ TSREQ$(1)_T_$(2)_H_$(3) = \
324337
SREQ$(1)_T_$(2)_H_$(3) = \
325338
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
326339
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_CORELIB) \
327-
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_STDLIB)
340+
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_STDLIB) \
341+
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTC)
328342

329343
ifeq ($(1),0)
330344
# Don't run the the stage0 compiler under valgrind - that ship has sailed

trunk/doc/tutorial/ffi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ microsecond-resolution timer.
189189
use std;
190190
type timeval = {mutable tv_sec: u32,
191191
mutable tv_usec: u32};
192-
#[link_name = ""]
192+
#[nolink]
193193
native mod libc {
194194
fn gettimeofday(tv: *timeval, tz: *()) -> i32;
195195
}
@@ -199,7 +199,7 @@ microsecond-resolution timer.
199199
ret (x.tv_sec as u64) * 1000_000_u64 + (x.tv_usec as u64);
200200
}
201201

202-
The `#[link_name = ""]` sets the name of the native module to the
202+
The `#[nolink]` sets the name of the native module to the
203203
empty string to prevent the rust compiler from trying to link it.
204204
The standard C library is already linked with Rust programs.
205205

trunk/mk/host.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ $$(HLIB$(2)_H_$(4))/libstd.rlib: \
6868
@$$(call E, cp: $$@)
6969
$$(Q)cp $$< $$@
7070

71+
$$(HLIB$(2)_H_$(4))/librustc.rlib: \
72+
$$(TLIB$(1)_T_$(4)_H_$(3))/librustc.rlib \
73+
$$(HLIB$(2)_H_$(4))/libcore.rlib \
74+
$$(HLIB$(2)_H_$(4))/libstd.rlib \
75+
$$(HLIB$(2)_H_$(4))/$$(CFG_RUNTIME)
76+
@$$(call E, cp: $$@)
77+
$$(Q)cp $$< $$@
78+
7179
$$(HLIB$(2)_H_$(4))/$$(CFG_RUSTLLVM): \
7280
$$(TLIB$(1)_T_$(4)_H_$(3))/$$(CFG_RUSTLLVM)
7381
@$$(call E, cp: $$@)

trunk/mk/install.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ install-target-$(1)-host-$(2): $$(SREQ$$(ISTAGE)_T_$(1)_H_$(2))
4040
$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(CORELIB_GLOB))
4141
$$(Q)$$(call INSTALL_LIB, \
4242
$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(STDLIB_GLOB))
43+
$$(Q)$$(call INSTALL_LIB, \
44+
$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(LIBRUSTC_GLOB))
4345
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),intrinsics.bc)
4446
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),libmorestack.a)
4547
endef
@@ -66,9 +68,11 @@ install-host: $(SREQ$(ISTAGE)_T_$(CFG_HOST_TRIPLE)_H_$(CFG_HOST_TRIPLE))
6668
$(Q)mkdir -p $(PREFIX_LIB)
6769
$(Q)mkdir -p $(PREFIX_ROOT)/share/man/man1
6870
$(Q)$(call INSTALL,$(HB),$(PHB),rustc$(X))
71+
$(Q)$(call INSTALL,$(HB),$(PHB),cargo$(X))
6972
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUNTIME))
7073
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(CORELIB_GLOB))
7174
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(STDLIB_GLOB))
75+
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUSTC_GLOB))
7276
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUSTLLVM))
7377
$(Q)$(call INSTALL,$(S)/man, \
7478
$(PREFIX_ROOT)/share/man/man1,rustc.1)

trunk/mk/stage0.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ $(HLIB0_H_$(CFG_HOST_TRIPLE))/$(CFG_STDLIB): \
2121
$(HBIN0_H_$(CFG_HOST_TRIPLE))/rustc$(X)
2222
$(Q)touch $@
2323

24+
$(HLIB0_H_$(CFG_HOST_TRIPLE))/$(CFG_LIBRUSTC): \
25+
$(HBIN0_H_$(CFG_HOST_TRIPLE))/rustc$(X)
26+
$(Q)touch $@
27+
2428
$(HLIB0_H_$(CFG_HOST_TRIPLE))/$(CFG_RUSTLLVM): \
2529
$(HBIN0_H_$(CFG_HOST_TRIPLE))/rustc$(X)
2630
$(Q)touch $@
@@ -52,6 +56,11 @@ $$(HLIB0_H_$(1))/$(CFG_STDLIB): \
5256
@$$(call E, cp: $$@)
5357
$$(Q)cp $$(TLIB$(2)_T_$(1)_H_$(3))/$$(STDLIB_GLOB) $$@
5458

59+
$$(HLIB0_H_$(1))/$(CFG_LIBRUSTC): \
60+
$$(TLIB$(2)_T_$(1)_H_$(3))/$$(CFG_LIBRUSTC)
61+
@$$(call E, cp: $$@)
62+
$$(Q)cp $$(TLIB$(2)_T_$(1)_H_$(3))/$$(LIBRUSTC_GLOB) $$@
63+
5564
$$(HLIB0_H_$(1))/$(CFG_RUSTLLVM): \
5665
$$(TLIB$(2)_T_$(1)_H_$(3))/$$(CFG_RUSTLLVM)
5766
@$$(call E, cp: $$@)

trunk/mk/target.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,17 @@ $$(TBIN$(1)_T_$(2)_H_$(3))/rustc$$(X): \
4949
$$(COMPILER_CRATE) $$(COMPILER_INPUTS) \
5050
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
5151
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_RUSTLLVM) \
52-
$$(TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3))
52+
$$(TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3)) \
53+
$$(TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3)) \
54+
$$(TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3))
5355
@$$(call E, compile_and_link: $$@)
5456
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$<
5557

5658
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTC): \
5759
$$(COMPILER_CRATE) $$(COMPILER_INPUTS) \
5860
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
5961
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_RUSTLLVM) \
62+
$$(TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3)) \
6063
$$(TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3))
6164
@$$(call E, compile_and_link: $$@)
6265
$$(STAGE$(1)_T_$(2)_H_$(3)) --lib -o $$@ $$< && touch $$@

trunk/src/cargo/cargo.rc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
// cargo.rs - Rust package manager
44

5+
use std;
6+
use rustc;
7+
58
// Local Variables:
69
// fill-column: 78;
710
// indent-tabs-mode: nil
811
// c-basic-offset: 4
912
// buffer-file-coding-system: utf-8-unix
1013
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
1114
// End:
12-
13-
#[link(name = "cargo",
14-
vers = "0.1",
15-
uuid = "9ff87a04-8fed-4295-9ff8-f99bb802650b",
16-
url = "http://rust-lang.org/doc/cargo")];

0 commit comments

Comments
 (0)