about summary refs log tree commit diff
path: root/src/comp/driver/session.rs
AgeCommit message (Collapse)AuthorLines
2011-07-06Begin adding unit testing infrastructure to the compilerBrian Anderson-1/+2
Add a --test flag and a pass for transforming the AST to generate a test harness. Issue #428
2011-07-05Don't thread the local crate number through the sessionMarijn Haverbeke-3/+1
It's a constant, anyway.
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-41/+15
src/comp/syntax is currently just a sub-module of rustc, but it will, in the near future, be its own crate. This includes: - The AST data structure - The parser - The pretty-printer - Visit, walk, and fold - The syntax extension system - Some utility stuff that should be in the stdlib* *) Stdlib extensions currently require a snapshot before they can be used, and the win build is very broken right now. This is temporary and will be cleaned up when one of those problems goes away. A lot of code was moved by this patch, mostly towards a more organized layout. Some package paths did get longer, and I guess the new layout will take some getting used to. Sorry about that! Please try not to re-introduce any dependencies in syntax/ on any of the other src/comp/ subdirs.
2011-07-04Use metadata to avoid always passing -Lrustllvm to the linker.Rafael Ávila de Espíndola-3/+12
2011-07-01Introduce --cfg argument for providing additional configuration. Issue #489Brian Anderson-1/+4
2011-06-29Add session.note methodBrian Anderson-0/+3
2011-06-29session.err shouldn't take a spanBrian Anderson-2/+2
2011-06-29Eliminate the --check-claims compiler flagTim Chevalier-1/+0
The option can only be toggled at runtime now.
2011-06-28Implement "claim"Tim Chevalier-0/+1
Implement "claim" (issue #14), which is a version of "check" that doesn't really do the check at runtime. It's an unsafe feature. The new flag --check-claims turns claims into checks automatically -- but it's off by default, so by default, the assertion in a claim doesn't execute at runtime.
2011-06-28Use "" in the native_name as an indication that no extra options have toRafael Ávila de Espíndola-0/+3
be passed to the "linker". Use that for libc.
2011-06-27Record and link with used native libraries.Rafael Ávila de Espíndola-0/+14
2011-06-20Fix line length.Rafael Ávila de Espíndola-2/+2
2011-06-20Remember the library files we used in rustc and pass them to the "linker".Rafael Ávila de Espíndola-0/+14
This avoid the hardcoded -lstd, allows programs to use other crates and avoids any differences that may exist in the rustc and ld search logic.
2011-06-19rustc: Re-introduce session.span_err, session.errBrian Anderson-1/+15
These errors are non-fatal. The session.abort_if_errors function needs to be called at strategic points to convert the previous errors to utter failure. Issue #440
2011-06-19rustc: Rename session.span_err -> span_fatal, err -> fatalBrian Anderson-4/+4
Issue #440
2011-06-19Revert previous 6 commits. Hopefully put out Windows fire.Brian Anderson-19/+5
Revert "rustc: Export only what's needed from middle::ty" This reverts commit 4255d58aa5db2a05362c4435a0e807205e1b8ed7. Revert "rustc: Make name resolution errors less fatal" This reverts commit b8ab9ea89c16c60237e7660804f4321f59ae0435. Revert "rustc: Make import resolution errors less fatal" This reverts commit 92a8ae94b971206bf0502da3dc5f416fcb24cc36. Revert "rustc: Export only what's used from middle::resolve" This reverts commit 4539a2cf7ad99851a165c98ed2f4e4a475cffd7d. Revert "rustc: Re-introduce session.span_err, session.err" This reverts commit 7fe9a88e31ae07f2fd89f6715efedd7e3edf49e6. Revert "rustc: Rename session.span_err -> span_fatal, err -> fatal" This reverts commit c394a7f49ac29a099994e243017065de2ff97f2a.
2011-06-19rustc: Re-introduce session.span_err, session.errBrian Anderson-1/+15
These errors are non-fatal. The session.abort_if_errors function needs to be called at strategic points to convert the previous errors to utter failure. Issue #440
2011-06-19rustc: Rename session.span_err -> span_fatal, err -> fatalBrian Anderson-4/+4
Issue #440
2011-06-17rustc: Remove metadata from the session.Brian Anderson-3/+0
This mechanism was not being used for anything. Issue #487.
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-99/+49
2011-06-07More work on proper linkage name-mangling. Almost right, aside from version ↵Graydon Hoare-15/+28
numbers.
2011-05-26Add a span_str function in sessionTim Chevalier-4/+12
2011-05-20Annotate erroring functions in session and parserTim Chevalier-6/+6
2011-05-19OptLevel changes. Accepts levels 0 to 3 only. '-O' is synonym for --OptLevel=2.Graydon Hoare-1/+1
2011-05-17rustc: Make return value checking warnings a little prettier. Also introduce ↵Patrick Walton-0/+5
a new "note" diagnostic level.
2011-05-17Finally rename std::_xxx to std::xxxMarijn Haverbeke-1/+1
Except for _task, which is still a keyword.
2011-05-13rustc: lowercase the link and link::write modulesBrian Anderson-1/+1
2011-05-12Add stats option and lazily emit glue.Graydon Hoare-0/+1
2011-05-12Downcase std modules again, move to :: for module dereferencingMarijn Haverbeke-29/+30
This should be a snapshot transition.
2011-05-10Add --time-llvm-passes.Graydon Hoare-0/+1
2011-05-06Rename std modules to be camelcasedMarijn Haverbeke-9/+9
(Have fun mergining your stuff with this.)
2011-05-05rustc: Add a Link module; move crate writing to it to slim down trans slightlyPatrick Walton-1/+1
2011-05-04rustc: Detect the system root and allow the user to override if necessaryPatrick Walton-1/+2
2011-05-04Add a structure for passing option flags around the compiler, put it in ↵Graydon Hoare-8/+23
session, and use it.
2011-04-28rustc: Only use color if it's supportedPatrick Walton-2/+10
2011-04-28rustc: Joseph and the Amazing Technicolor Error MessagesPatrick Walton-21/+20
2011-04-19replace error logging with log_err in stdlib and rustcMarijn Haverbeke-18/+18
2011-04-18collect crate meta info and ext crate namesMarijn Haverbeke-4/+13
2011-04-09Move to single-uint file-position representation.Marijn Haverbeke-10/+26
This makes passing them around cheaper. There is now a table (see front/codemap.rs) that is needed to transform such an uint into an actual filename/line/col location. Also cleans up the span building in the parser a bit.
2011-03-25Another go at changing compile-command, this time using RBUILD env var.Graydon Hoare-1/+1
2011-03-25Sketch of wiring typeck up to creader.Graydon Hoare-1/+7
2011-03-25Revert "Bulk-edit compile commands in emacs chatter to point to assumed ↵Graydon Hoare-1/+1
build/ dir off src root." This reverts commit 846f2e2ba994268725f38c36fa12f1a09f21615c.
2011-03-25Bulk-edit compile commands in emacs chatter to point to assumed build/ dir ↵Graydon Hoare-1/+1
off src root.
2011-03-25rustc: Store cached crate metadata in the sessionPatrick Walton-0/+4
2011-03-25rustc: Create a crate metadata cachePatrick Walton-1/+12
2011-03-18rustc: When encountering "mutable" as a tycon, parse it, drop it on the ↵Patrick Walton-0/+8
floor, and emit a warning
2011-03-18rustc: Add a span_unimpl() for debuggingPatrick Walton-0/+9
2010-11-22Check and translate 'as' cast-operator, lower target-specific types, ↵Graydon Hoare-1/+30
reindent rustc.rs, enable uint test.
2010-10-18Rewrite session formatting to use #fmt extension.Graydon Hoare-19/+7
2010-09-23More fleshing-out on rustc.me.trans. Emitting modules and fns corresponding ↵Graydon Hoare-3/+10
to parsed input now.