Skip to content

Commit 864b0bb

Browse files
author
Elly Jones
committed
---
yaml --- r: 6773 b: refs/heads/master c: 10cf4a1 h: refs/heads/master i: 6771: 384dec6 v: v3
1 parent 9093ef5 commit 864b0bb

34 files changed

+239
-222
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: c758e11fd37f54ddfa9a628466fde7c92c027947
2+
refs/heads/master: 10cf4a1b0a90787ed50f3153f481e7128cffbec7

trunk/LICENSE.txt

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -223,32 +223,9 @@ 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-
249226
The remaining code and documentation in the collective work
250227
presented here, as well as the collective work itslf, is
251-
distributed under the following terms ("The Rust License"):
228+
distributed under the following terms:
252229

253230
Copyright (c) 2006-2011 Graydon Hoare
254231
Copyright (c) 2009-2011 Mozilla Foundation

trunk/Makefile.in

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -289,31 +289,19 @@ 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-
293292
HSTDLIB_DEFAULT$(1)_H_$(3) = \
294293
$$(HLIB$(1)_H_$(3))/libstd.rlib
295294
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
296295
$$(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
302296
else
303297
HCORELIB_DEFAULT$(1)_H_$(3) = \
304298
$$(HLIB$(1)_H_$(3))/$(CFG_CORELIB)
305299
TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
306300
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_CORELIB)
307-
308301
HSTDLIB_DEFAULT$(1)_H_$(3) = \
309302
$$(HLIB$(1)_H_$(3))/$(CFG_STDLIB)
310303
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
311304
$$(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)
317305
endif
318306

319307
# Preqrequisites for using the stageN compiler
@@ -323,7 +311,6 @@ HSREQ$(1)_H_$(3) = \
323311
$$(HLIB$(1)_H_$(3))/$$(CFG_RUSTLLVM) \
324312
$$(HCORELIB_DEFAULT$(1)_H_$(3)) \
325313
$$(HSTDLIB_DEFAULT$(1)_H_$(3)) \
326-
$$(HLIBRUSTC_DEFAULT$(1)_H_$(3)) \
327314
$$(MKFILE_DEPS)
328315

329316
# Prerequisites for using the stageN compiler to build target artifacts
@@ -337,8 +324,7 @@ TSREQ$(1)_T_$(2)_H_$(3) = \
337324
SREQ$(1)_T_$(2)_H_$(3) = \
338325
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
339326
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_CORELIB) \
340-
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_STDLIB) \
341-
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTC)
327+
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_STDLIB)
342328

343329
ifeq ($(1),0)
344330
# 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-
#[nolink]
192+
#[link_name = ""]
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 `#[nolink]` sets the name of the native module to the
202+
The `#[link_name = ""]` 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: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@ $$(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-
7971
$$(HLIB$(2)_H_$(4))/$$(CFG_RUSTLLVM): \
8072
$$(TLIB$(1)_T_$(4)_H_$(3))/$$(CFG_RUSTLLVM)
8173
@$$(call E, cp: $$@)

trunk/mk/install.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ 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))
4543
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),intrinsics.bc)
4644
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),libmorestack.a)
4745
endef
@@ -68,11 +66,9 @@ install-host: $(SREQ$(ISTAGE)_T_$(CFG_HOST_TRIPLE)_H_$(CFG_HOST_TRIPLE))
6866
$(Q)mkdir -p $(PREFIX_LIB)
6967
$(Q)mkdir -p $(PREFIX_ROOT)/share/man/man1
7068
$(Q)$(call INSTALL,$(HB),$(PHB),rustc$(X))
71-
$(Q)$(call INSTALL,$(HB),$(PHB),cargo$(X))
7269
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUNTIME))
7370
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(CORELIB_GLOB))
7471
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(STDLIB_GLOB))
75-
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(LIBRUSTC_GLOB))
7672
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUSTLLVM))
7773
$(Q)$(call INSTALL,$(S)/man, \
7874
$(PREFIX_ROOT)/share/man/man1,rustc.1)

trunk/mk/stage0.mk

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ $(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-
2824
$(HLIB0_H_$(CFG_HOST_TRIPLE))/$(CFG_RUSTLLVM): \
2925
$(HBIN0_H_$(CFG_HOST_TRIPLE))/rustc$(X)
3026
$(Q)touch $@
@@ -56,11 +52,6 @@ $$(HLIB0_H_$(1))/$(CFG_STDLIB): \
5652
@$$(call E, cp: $$@)
5753
$$(Q)cp $$(TLIB$(2)_T_$(1)_H_$(3))/$$(STDLIB_GLOB) $$@
5854

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-
6455
$$(HLIB0_H_$(1))/$(CFG_RUSTLLVM): \
6556
$$(TLIB$(2)_T_$(1)_H_$(3))/$$(CFG_RUSTLLVM)
6657
@$$(call E, cp: $$@)

trunk/mk/target.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,14 @@ $$(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-
$$(TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3)) \
53-
$$(TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3)) \
54-
$$(TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3))
52+
$$(TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3))
5553
@$$(call E, compile_and_link: $$@)
5654
$$(STAGE$(1)_T_$(2)_H_$(3)) -o $$@ $$<
5755

5856
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_LIBRUSTC): \
5957
$$(COMPILER_CRATE) $$(COMPILER_INPUTS) \
6058
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
6159
$$(TLIB$(1)_T_$(2)_H_$(3))/$$(CFG_RUSTLLVM) \
62-
$$(TCORELIB_DEFAULT$(1)_T_$(2)_H_$(3)) \
6360
$$(TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3))
6461
@$$(call E, compile_and_link: $$@)
6562
$$(STAGE$(1)_T_$(2)_H_$(3)) --lib -o $$@ $$< && touch $$@

trunk/src/cargo/cargo.rc

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

33
// cargo.rs - Rust package manager
44

5-
use std;
6-
use rustc;
7-
85
// Local Variables:
96
// fill-column: 78;
107
// indent-tabs-mode: nil
118
// c-basic-offset: 4
129
// buffer-file-coding-system: utf-8-unix
1310
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
1411
// 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)