about summary refs log tree commit diff
path: root/mk
AgeCommit message (Collapse)AuthorLines
2015-03-31Rollup merge of #23874 - cmr:no-compiler-docs, r=alexcrichtonManish Goregaokar-8/+13
r? @alexcrichton
2015-03-30mk: build and distribute facade crates unconditionally (for now)Corey Richardson-8/+13
2015-03-30Auto merge of #23848 - cmr:no-compiler-docs, r=huonwbors-11/+26
This saves a bunch of a time and will make distributions smaller, as well as avoiding filling the implementors page with internal garbage. Turn it back on with `--enable-compiler-docs` if you want them. (Crates behind the facade are not documented at all) [breaking-change]
2015-03-29mk: don't build docs for internal or behind-the-facade crates in beta/stableCorey Richardson-11/+26
This saves a bunch of a time and will make distributions smaller, as well as avoiding filling the implementors page with internal garbage. Turn it back on with `--enable-compiler-docs` if you want compiler docs during development. Crates behind the facade are only documented on nightly/dev builds (where they can be used). [breaking-change] Closes #23772 Closes #21297
2015-03-28Fix some typosVadim Petrochenkov-2/+2
2015-03-25make it use gdb instead of lldb when mac-android cross compileSae-bom Kim-0/+5
2015-03-17Rollup merge of #23385 - tamird:cleanup-whitespace, r=alexcrichtonManish Goregaokar-4/+0
r? @alexcrichton Conflicts: src/test/run-pass/test-fn-signature-verification-for-explicit-return-type.rs
2015-03-17Auto merge of #23429 - rprichard:fix-linux-build, r=alexcrichtonbors-0/+1
The RUST_TARGET_STAGE_N rule uses LLVM_LIBDIR_RUSTFLAGS_<target-triple>, which expands to -L "$(llvm-config --libdir)" when the target-triple is also a host-triple. Rather than expand to -L "" if llvm-config has not yet been built, add a dependency on the target llvm-config. When the target-triple is not a host-triple, the new LLVM_CONFIG_$(2) dependency should expand to nothing. r? alexcrichton
2015-03-16Fix the Linux nightly build by adding a LLVM_CONFIG_<target-triple> dep.Ryan Prichard-0/+1
The RUST_TARGET_STAGE_N rule uses LLVM_LIBDIR_RUSTFLAGS_<target-triple>, which expands to -L "$(llvm-config --libdir)" when the target-triple is also a host-triple. Rather than expand to -L "" if llvm-config has not yet been built, add a dependency on the target llvm-config. When the target-triple is not a host-triple, the new LLVM_CONFIG_$(2) dependency should expand to nothing.
2015-03-16join lines in makefileJorge Aparicio-2/+1
2015-03-16move some tests back to libcollectionsJorge Aparicio-1/+1
2015-03-16extract libcollections tests into libcollectionstestJorge Aparicio-1/+6
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-4/+0
2015-03-13Avoid passing -L "" during cross-compilation.Ryan Prichard-2/+3
LLVM_LIBDIR_<triple> is only defined for host triples, not target triples. FWIW, the same is true for LLVM_STDCPP_RUSTFLAGS_<triple>, where we explicitly define it as empty when --enable-llvm-static-stdcpp is not specified, but it's still undefined for cross-compiled triples.
2015-03-13Rollup merge of #23324 - rprichard:fix-freebsd, r=brsonManish Goregaokar-4/+4
Currently, target.mk passes -L \"\" when LLVM_STDCPP_LOCATION_$(2) is empty. This fixes #23287.
2015-03-12Fix naming of beta artifacts againBrian Anderson-2/+2
2015-03-12Avoid passing -L "" to rustc.Ryan Prichard-4/+4
Currently, target.mk passes -L "" when LLVM_STDCPP_LOCATION_$(2) is empty. This fixes #23287.
2015-03-11mk/tests: filter more possible debug-assertionsCody P Schafer-1/+1
2015-03-10configure: have --enable-debug set -C debug-assertions=on so `debug!()` ↵Cody P Schafer-1/+1
works again
2015-03-06Rollup merge of #23094 - brson:beta, r=huonwManish Goregaokar-3/+3
No more alphas, please.
2015-03-05mk: Once again rename the beta channel artifacts as 'beta'Brian Anderson-3/+3
No more alphas, please.
2015-03-05rustc: Add a debug_assertions #[cfg] directiveAlex Crichton-1/+1
This commit is an implementation of [RFC 563][rfc] which adds a new `cfg(debug_assertions)` directive which is specially recognized and calculated by the compiler. The flag is turned off at any optimization level greater than 1 and may also be explicitly controlled through the `-C debug-assertions` flag. [rfc]: https://github.com/rust-lang/rfcs/pull/563 The `debug_assert!` and `debug_assert_eq!` macros now respect this instead of the `ndebug` variable and `ndebug` no longer holds any meaning to the standard library. Code which was previously relying on `not(ndebug)` to gate expensive code should be updated to rely on `debug_assertions` instead. Closes #22492 [breaking-change]
2015-03-04std: Deprecate std::old_io::fsAlex Crichton-0/+2
This commit deprecates the majority of std::old_io::fs in favor of std::fs and its new functionality. Some functions remain non-deprecated but are now behind a feature gate called `old_fs`. These functions will be deprecated once suitable replacements have been implemented. The compiler has been migrated to new `std::fs` and `std::path` APIs where appropriate as part of this change.
2015-03-03Make build timestamp files robust in face of concurrent source modification.Felix S. Klock II-15/+32
Strategy: If the end goal is to touch e.g. `stamp.std`, then we first touch `stamp.std.start_time` before doing anything else. Then when the receipe finishes, we touch `stamp.std` using the timestamp from `stamp.std.start_time` as the reference time, and remove `stamp.std.start_time`. Fix #6518.
2015-02-28Separate most of rustc::lint::builtin into a separate crate.Huon Wilson-6/+9
This pulls out the implementations of most built-in lints into a separate crate, to reduce edit-compile-test iteration times with librustc_lint and increase parallelism. This should enable lints to be refactored, added and deleted much more easily as it slashes the edit-compile cycle to get a minimal working compiler to test with (`make rustc-stage1`) from librustc -> librustc_typeck -> ... -> librustc_driver -> libcore -> ... -> libstd to librustc_lint -> librustc_driver -> libcore -> ... libstd which is significantly faster, mainly due to avoiding the librustc build itself. The intention would be to move as much as possible of the infrastructure into the crate too, but the plumbing is deeply intertwined with librustc itself at the moment. Also, there are lints for which diagnostics are registered directly in the compiler code, not in their own crate traversal, and their definitions have to remain in librustc. This is a [breaking-change] for direct users of the compiler APIs: callers of `rustc::session::build_session` or `rustc::session::build_session_` need to manually call `rustc_lint::register_builtins` on their return value. This should make #22206 easier.
2015-02-21Auto merge of #21959 - dhuseby:bitrig-support, r=brsonbors-9/+43
This patch adds the necessary pieces to support rust on Bitrig https://bitrig.org
2015-02-18rollup merge of #22118: fhahn/separate-parse-fail-2Alex Crichton-4/+13
After making `rustc` fail on errors at a stop point, like `-Z parse-only`, in #22117, the files in this PR also fail during the parse stage and should be moved as well. Sorry for spliting this move up in two PRs.
2015-02-18 Manual merge of #22475 - alexcrichton:rollup, r=alexcrichtonHuon Wilson-2/+8
One windows bot failed spuriously.
2015-02-17rollup merge of #22331: steveklabnik/guidelinesAlex Crichton-1/+7
Fixes #19315 r? @aturon
2015-02-17Auto merge of #21774 - ejjeong:enable-test-for-android, r=alexcrichtonbors-20/+21
- Now "make check-stage2-T-aarch64-linux-android-H-x86_64-unknown-linux-gnu" works (#21773) - Fix & enable debuginfo tests for android (#10381) - Fix & enable more tests for android (both for arm/aarch64) - Enable many already-pass tests on android (both for arm/aarch64)
2015-02-17Fix removal of complement-bugreport.mdManish Goregaokar-1/+1
2015-02-17Rollup merge of #22326 - semarie:compat-cp, r=alexcrichtonManish Goregaokar-4/+4
`cp -a` is a GNU extension. Use an alternate combinaison of POSIX options (`-PRp`) that do nearly the same. The difference is `-a` will preserve context, links and xattr attributes, whereas `-p` not. But as we use it only for copy a file, there is no difference in the current context.
2015-02-17Rollup merge of #22341 - fhahn:issue-22291-PLEASE-FAIL, r=alexcrichtonManish Goregaokar-5/+5
This is a patch for #22291. PLEASE_BENCH=1 adds --bench to the arguments passed to the executable to be tested. At the moment, compiletest does not accept a --bench argument, because it is not needed for any test in src/test/, even the tests in src/test/bench do not use #[bench]. I have updated the makefile to only add the --bench flag for crate tests. I do not think that changing compiletest add --bench to the run arguments of all compile tests makes sense, because it would mess up tests which check command line arguments. Also the bench option can be added as comment in a compile test as well.
2015-02-16Import rust-guidlinesSteve Klabnik-1/+7
at https://github.com/rust-lang/rust-guidelines/commit/16fa41b3b091e7e532c809c7145dd88b8e4a5513 Fixes #19315
2015-02-16Add pfail targets for parse-fail testsFlorian Hahn-4/+13
2015-02-15Rollup merge of #22256 - brson:installer-next, r=alexcrichtonManish Goregaokar-10/+11
Highlights: * Adds an 'uninstall.sh' script to `/usr/local/lib/rustlib/uninstall.sh`, the path to which is printed during installation. * Components can be deselected during install, like `install.sh --without=rust-docs`. * Components can be listed with `install.sh --list-components`. * Vastly reduces spew during install (but supporting a `--verbose` option). Typicall install run looks like: ``` brian@brianX1:~/dev/multirust⟫ sudo ./install.sh [sudo] password for brian: install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh install: installing component 'rustc' install: installing component 'cargo' install: installing component 'rust-docs' Rust is ready to roll. ``` Needs to be merged right before corresponding PRs to cargo and rust-packaging. Fixes https://github.com/rust-lang/rust/issues/21117 Fixes https://github.com/rust-lang/rust/issues/20283
2015-02-15Rollup merge of #22292 - brson:alpha2, r=alexcrichtonManish Goregaokar-3/+3
2015-02-15Rollup merge of #22308 - steveklabnik:gh19278, r=brsonManish Goregaokar-1/+1
Fixes #19278
2015-02-15Rollup merge of #22201 - brson:version, r=nick29581Manish Goregaokar-1/+5
rustc --version says ``` rustc 1.0.0-dev (d0e82a68a 2015-02-05 14:38:56 -0800) (built 2015-02-11) ```
2015-02-14Only set --bench for crate tests when PLEASE_BENCH is setFlorian Hahn-5/+5
closes #22291
2015-02-14docs.mk: use posix arguments for cpSébastien Marie-4/+4
`cp -a` is a GNU extension. Use an alternate combinaison of POSIX options (`-PRp`) that do nearly the same. The difference is `-a` will preserve context, links and xattr attributes, whereas `-p` not. But as we use it only for copy a file, there is no difference in the current context.
2015-02-13Generate grammar.html and link to it from the reference.Steve Klabnik-1/+1
Fixes #19278
2015-02-13Add the build date to the reported version. #21957Brian Anderson-1/+5
rustc --version says ``` rustc 1.0.0-dev (d0e82a68a 2015-02-05) (built 2015-02-11) ```
2015-02-13Update version number for 1.0.0-alpha.2Brian Anderson-3/+3
2015-02-12Upgrade rust-installerBrian Anderson-10/+11
2015-02-11PR review fixesDave Huseby-9/+9
2015-02-11bitrig integrationDave Huseby-9/+43
2015-02-11docs: disable PDF docs when latex _isn't_ presentTim Cuthbertson-1/+1
2015-02-10Remove duplicated configuration for androidEunji Jeong-11/+7
2015-02-10Add one more depth on android test directory for multiple targetsEunji Jeong-9/+10