about summary refs log tree commit diff
path: root/src/librustpkg/util.rs
AgeCommit message (Collapse)AuthorLines
2014-02-02Remove rustpkg.Corey Richardson-699/+0
I'm sorry :'( Closes #11859
2014-02-02librustc: Fix merge fallout.Patrick Walton-5/+6
2014-02-02libsyntax: De-`@str` literal strings in the ASTPatrick Walton-3/+5
2014-02-02libsyntax: Introduce an `InternedString` type to reduce `@str` in thePatrick Walton-4/+8
compiler and use it for attributes
2014-01-27debuginfo: Fix name attribute for DWARF compile unitsMichael Woerister-0/+1
2014-01-24auto merge of #11720 : sfackler/rust/macro-export-source, r=alexcrichtonbors-1/+1
The old method of serializing the AST gives totally bogus spans if the expansion of an imported macro causes compilation errors. The best solution seems to be to serialize the actual textual macro definition and load it the same way the std-macros are. I'm not totally confident that getting the source from the CodeMap will always do the right thing, but it seems to work in simple cases.
2014-01-23Redo exported macro serializationSteven Fackler-1/+1
The old method of serializing the AST gives totally bogus spans if the expansion of an imported macro causes compilation errors. The best solution seems to be to serialize the actual textual macro definition and load it the same way the std-macros are. I'm not totally confident that getting the source from the CodeMap will always do the right thing, but it seems to work in simple cases.
2014-01-23rustpkg::crate_id: Remove CrateIdklutzy-16/+16
There is no significant difference between `rustpkg::crate_id::CrateId` and `syntax::crateid::CrateId`. rustpkg's one is replaced by syntax's one.
2014-01-23rustpkg: Compute hash to find crateklutzy-16/+13
Previously rustpkg tried to parse filenames to find crate. Now ue use deterministic hashes, so it becomes possible to directly construct filename and check if the file exists.
2014-01-23rustpkg::version: Remove enum Versionklutzy-1/+1
Currently rustpkg doesn't use SemanticVersion or Tagged, so they are removed. Remaining variants are replaced by `Option<~str>`.
2014-01-17rustc::driver: Capitalize structs and enumsklutzy-3/+3
driver::session::crate_metadata is unused; removed.
2014-01-16Load macros from external modulesSteven Fackler-45/+75
2014-01-12Don't overwrite the options.output value from build_session_optionsJan Niklas Hasse-5/+0
2014-01-11Use target libraries instead of host libraries. Fixes #11243Jan Niklas Hasse-1/+1
2014-01-09rustc: Fix style of OutputType enumBrian Anderson-7/+7
2014-01-09libsyntax: Renamed types, traits and enum variants to CamelCase.Eduard Burtescu-15/+15
2014-01-07Fix remaining cases of leaking importsAlex Crichton-0/+1
2014-01-06auto merge of #11327 : nielsle/rust/rustpkg_argparse, r=alexcrichtonbors-30/+0
Rearrange some code in rustpkg: * Move command line argument parsing to parse_args.rs * Introduce an enum to descibe commands such as Build, Install, and Clean. * Move sysroot from Context to BuildContext, to make parse_args more modular. This is my first pull request, so please tell me if there is anything I need to do.
2014-01-06Disowned the Visitor.Eduard Burtescu-4/+6
2014-01-05Command is now an enumNiels langager Ellegaard-30/+0
2014-01-03librustpkg: De-`@mut` `rustpkg`Patrick Walton-14/+13
2014-01-02auto merge of #10696 : fhahn/rust/issue9543-remove-extern-mod-foo, r=pcwaltonbors-1/+1
This patch for #9543 throws an `obsolete syntax` error for `extern mod foo (name="bar")` . I was wondering if [this](https://github.com/fhahn/rust/compare/mozilla:master...fhahn:issue9543-remove-extern-mod-foo?expand=1#diff-da9d34ca1d0f6beee2838cf02e07345cR4444) is the correct place to do this? I think the wording of the error message could probably be improved as well. If this approach is OK, I'm going to run the whole test suite tomorrow and update the old syntax to the new one.
2014-01-01Remove `extern mod foo (name="bar")` syntax, closes #9543Florian Hahn-1/+1
2014-01-01syntax::codemap: Add static DUMMY_SPklutzy-2/+2
It replaces `dummy_sp()`.
2014-01-01rustc::driver: Remove two @sklutzy-1/+1
2013-12-31Generate --dep-info earlier in the compillation.SiegeLord-1/+1
2013-12-30auto merge of #11182 : luisbg/rust/crateid, r=cmrbors-11/+11
Issue #11048
2013-12-29Make ast_fold take &mut selfSteven Fackler-5/+5
2013-12-29Rename uses of PkgId to CrateId in librustpkgLuis de Bethencourt-11/+11
2013-12-28Stop using @ExtCtxtSteven Fackler-1/+1
2013-12-26librustc: De-`@mut` the additional library search pathsPatrick Walton-11/+27
2013-12-19Rename pkgid to crate_idCorey Richardson-2/+2
Closes #11035
2013-12-15auto merge of #10948 : cmr/rust/update_pkgid, r=metajackbors-1/+1
2013-12-14librustpkg: don't clobber the crate attributes for the pkgidCorey Richardson-1/+1
2013-12-13auto merge of #10698 : metajack/rust/dep-info, r=alexcrichtonbors-2/+3
This isn't super useful for libraries yet without #10593. Fixes #7633.
2013-12-12Add --dep-info to write Makefile-compatible dependency info.Jack Moffitt-2/+3
When --dep-info is given, rustc will write out a `$input_base.d` file in the output directory that contains Makefile compatible dependency information for use with tools like make and ninja.
2013-12-11Make 'self lifetime illegal.Erik Price-9/+9
Also remove all instances of 'self within the codebase. This fixes #10889.
2013-12-10Make crate hash stable and externally computable.Jack Moffitt-21/+30
This replaces the link meta attributes with a pkgid attribute and uses a hash of this as the crate hash. This makes the crate hash computable by things other than the Rust compiler. It also switches the hash function ot SHA1 since that is much more likely to be available in shell, Python, etc than SipHash. Fixes #10188, #8523.
2013-12-08Remove dead codesKiet Tran-0/+2
2013-12-04Revert "libstd: Change `Path::new` to `Path::init`."Kevin Ballard-3/+3
This reverts commit c54427ddfbbab41a39d14f2b1dc4f080cbc2d41b. Leave the #[ignores] in that were added to rustpkg tests. Conflicts: src/librustc/driver/driver.rs src/librustc/metadata/creader.rs
2013-11-29Add generation of static libraries to rustcAlex Crichton-4/+3
This commit implements the support necessary for generating both intermediate and result static rust libraries. This is an implementation of my thoughts in https://mail.mozilla.org/pipermail/rust-dev/2013-November/006686.html. When compiling a library, we still retain the "lib" option, although now there are "rlib", "staticlib", and "dylib" as options for crate_type (and these are stackable). The idea of "lib" is to generate the "compiler default" instead of having too choose (although all are interchangeable). For now I have left the "complier default" to be a dynamic library for size reasons. Of the rust libraries, lib{std,extra,rustuv} will bootstrap with an rlib/dylib pair, but lib{rustc,syntax,rustdoc,rustpkg} will only be built as a dynamic object. I chose this for size reasons, but also because you're probably not going to be embedding the rustc compiler anywhere any time soon. Other than the options outlined above, there are a few defaults/preferences that are now opinionated in the compiler: * If both a .dylib and .rlib are found for a rust library, the compiler will prefer the .rlib variant. This is overridable via the -Z prefer-dynamic option * If generating a "lib", the compiler will generate a dynamic library. This is overridable by explicitly saying what flavor you'd like (rlib, staticlib, dylib). * If no options are passed to the command line, and no crate_type is found in the destination crate, then an executable is generated With this change, you can successfully build a rust program with 0 dynamic dependencies on rust libraries. There is still a dynamic dependency on librustrt, but I plan on removing that in a subsequent commit. This change includes no tests just yet. Our current testing infrastructure/harnesses aren't very amenable to doing flavorful things with linking, so I'm planning on adding a new mode of testing which I believe belongs as a separate commit. Closes #552
2013-11-29libstd: Change `Path::new` to `Path::init`.Patrick Walton-3/+3
2013-11-28Register new snapshotsAlex Crichton-1/+1
2013-11-26Support multiple item macrosSteven Fackler-2/+3
Closes #4375
2013-11-26librustc: Remove non-procedure uses of `do` from librustc, librustdoc,Patrick Walton-8/+6
and librustpkg.
2013-11-26librustc: Remove remaining uses of `&fn()` in favor of `||`.Patrick Walton-2/+2
2013-11-26Removed unneccessary `_iter` suffixes from various APIsMarvin Löbel-1/+1
2013-11-16fix 10468, propagate optimization level as rustc::driver::session::OptLevelIan Daniher-3/+3
2013-11-12rustpkg: Eliminate the spurious ↵Tim Chevalier-6/+18
`os::path_exists(&pkg_src.start_dir.join(p))` assertion failure This addresses the problem reported in #10253 and possibly elsewhere. Closes #10253
2013-11-11Move std::rt::io to std::ioAlex Crichton-2/+2