Rafael Ávila de Espíndola
2c16be424b
Use main.o directly now that stage0 is ok with it.
2011-06-08 13:33:35 -04:00
Rafael Ávila de Espíndola
b1d6f12a05
Don't put a copy of main (the C one) in each binary we produce. This is a step
...
in getting a driver that works on all linux systems.
Sorry for the linker hacks, I will remove them after snapshotting a new compiler.
2011-06-07 16:56:27 -04:00
Graydon Hoare
49742b86be
Add a 'make reformat' rule.
2011-06-01 12:01:55 -07:00
Tim Chevalier
60399ed198
Tell Makefile to look an extra level deep for dependencies
2011-05-19 11:40:16 -07:00
Rafael Ávila de Espíndola
96516e9ca2
One exit_task_glue to rule them all.
2011-05-18 15:43:48 -04:00
Graydon Hoare
6a4a85f452
Re-export CFG_LLVM_ROOT to reconfiguring.
2011-05-18 12:00:33 -07:00
Graydon Hoare
9ac29480ce
Be a bit noisier about being in a transition.
2011-05-16 15:14:58 -07:00
Brian Anderson
072305af13
Remove CFG_OCAMLC_OPT
2011-05-14 16:08:22 -04:00
Brian Anderson
cad8c734bd
Add a flag to run the compiler under valgrind
2011-05-14 00:15:40 -04:00
Graydon Hoare
ae784df3ce
Add support for 'T' transition snapshots, which are identical to S snapshots except they tell the makefile to stop at stage1.
2011-05-13 17:06:58 -07:00
Brian Anderson
9a12ad62f6
Add targets for building rustc as a library
2011-05-10 21:31:14 -04:00
Brian Anderson
a5ea56c6f0
Introduce the fuzzer crate and make rules
2011-05-10 21:31:14 -04:00
Patrick Walton
404db4d9a1
build: Add a DEBUG flag that turns on -g
2011-05-10 17:50:39 -07:00
Graydon Hoare
1e03f00404
Use #env to bake a git revision string into rustc's --version output.
2011-05-06 11:21:51 -07:00
Patrick Walton
518e2d249c
build: Disable valgrind by default on the Mac. Our suppressions file doesn't even begin to cover the huge stream of errors that dyld generates.
2011-05-05 18:11:40 -07:00
Ralph Giles
0b2cfcaab9
Make ocamlc and optional dependency.
...
Since moving to a downloadable snapshot for stage0, it's been
possible to complete the build without compiling code written
in ocaml. However, the configure script still required it to
be present.
This commit changes detection failure to a non-fatal condition,
allowing the build to complete on systems without an ocaml
compiler.
An info message is also made conditional.
2011-05-05 11:02:16 -07:00
Patrick Walton
04f966f0bc
build: Build intrinsics.bc
2011-05-04 18:29:08 -07:00
Graydon Hoare
4f52ab52c1
Remove everything to do with rustboot from makefiles.
2011-05-03 15:56:00 -07:00
Graydon Hoare
d987b49a4b
More hacking on the snapshot system.
2011-05-02 23:37:52 -07:00
Graydon Hoare
5d1c8dbfa9
Add stage1, stage2 to Makefile.in default target, so tinderboxes notice breakage.
2011-05-02 17:56:33 -07:00
Graydon Hoare
40624e35d7
Start splitting up Makefile.in
2011-05-01 20:20:25 +00:00
Graydon Hoare
73ba2dd4c7
Shift stages around; stage0/rustc depends on stage0/libstd.so.
2011-04-30 18:44:34 +00:00
Patrick Walton
9aeb67987c
rustc: Temporarily add a switch and a corresponding makefile variable to disable typestate
2011-04-29 12:16:14 -07:00
Patrick Walton
648c4ae2ba
build: Add a TIME_PASSES=1 variable
2011-04-29 11:55:32 -07:00
Patrick Walton
c52fb52fbc
rustc: Remove the wrong-compiler warning; we're self-hosting now.
2011-04-29 10:23:53 -07:00
Marijn Haverbeke
6b11f6c46f
Change rustc to use GetOpts rather than ad-hoc command-line parsing
...
NOTE: all 'long' parameters now use a double dash, so --shared, rather
than gcc-style -shared.
2011-04-26 20:32:14 +02:00
Patrick Walton
3f77e7df6d
rustc: Add a SAVE_TEMPS option to the Makefile for use when debugging stage1 and test cases
2011-04-25 14:20:28 -07:00
Graydon Hoare
0cffc58225
Fix LD_LIBRARY_PATH on STAGE0, STAGE1 defs; define STAGE2.
2011-04-24 00:29:19 -07:00
Graydon Hoare
9eec7e3b15
Expansion of rules to cover stage1, stage2 in more cases. Fix typo in makefile.
2011-04-24 06:06:29 +00:00
Rafael Ávila de Espíndola
fac8cc3b06
Use -c in the Makefiles.
2011-04-22 15:15:52 -04:00
Graydon Hoare
186717fae0
Fix link commands for stage1 and stage2.
2011-04-21 06:07:10 +00:00
Graydon Hoare
c470cd2d66
Fix stage1 Makefile rules.
2011-04-20 15:24:04 +00:00
Graydon Hoare
d2bd07dcb0
Remove effect system from src.
2011-04-19 13:35:49 -07:00
Rafael Ávila de Espíndola
9657e5d2d3
Revert 9ab42038bb
while I find what is
...
wrong on Windows.
2011-04-18 15:37:04 -04:00
Rafael Ávila de Espíndola
9ab42038bb
Change the makefiles to use -c.
2011-04-18 15:00:17 -04:00
Rafael Ávila de Espíndola
099e094765
Produce PIC code and use -S in the Makefile.
2011-04-15 19:29:13 -04:00
Rafael Ávila de Espíndola
01b1d4110d
Remove code that is already in llvm for some time.
2011-04-13 14:55:44 -04:00
Rafael Ávila de Espíndola
1fa7fe758f
Update Makefile.in, not Makefile :-(
2011-04-13 14:05:02 -04:00
Rafael Ávila de Espíndola
4bd8dcccbc
Try to fix the windows build.
2011-04-11 15:05:18 -04:00
Rafael Ávila de Espíndola
e733311a95
Make sure RustWrapper.cpp is linked in.
2011-04-11 14:52:11 -04:00
Graydon Hoare
19ebc0f376
Actually disable optimize in --disable-optimize case, duh.
2011-04-08 17:28:14 -07:00
Graydon Hoare
cae703c0b1
Add support for --disable-optimize
2011-04-08 15:49:14 -07:00
Rafael Ávila de Espíndola
2cbe2bcb5e
Link with -lm now that it is not included with --whole-archive when
...
building rustllvm.
2011-04-08 14:51:47 -04:00
Rafael Ávila de Espíndola
f8e22cdff3
Gold is more strict about --whole-archive and will report duplicated
...
symbols because of an Object.o in a .a and one outside. A similar
problem happens for the non-shared part of libpthread.
This patch moves the -whole-archive/-no-whole-archive to include just the
llvm libs.
2011-04-08 14:25:18 -04:00
Patrick Walton
ed14ea1d3f
build: Use -O0 on Darwin. Seems that Darwin's GCC optimizations break rustrt.
2011-04-07 18:14:13 -07:00
Marijn Haverbeke
973023030e
add -O2 when compiling rt, fix warnings triggered by optimizer
2011-04-08 00:41:52 +02:00
Rafael Ávila de Espíndola
b4422cca21
Add a -O option and change the Makefile to use it.
2011-04-07 15:42:06 -04:00
Graydon Hoare
6d857c0c84
Fix error where make check would not produce compilers first, due to make's infinite-recursion-prevention heuristic.
2011-03-31 14:58:44 -07:00
Graydon Hoare
a505e3c0ec
Improve 'clean' make target.
2011-03-31 14:03:43 -07:00
Graydon Hoare
a154c5b656
Um, that'd be, align the word *before* retpc. Addresses point to the low part of a word. Un-XFAIL nbody on Darwin.
2011-03-30 14:10:06 -07:00