about summary refs log tree commit diff
path: root/mk/dist.mk
AgeCommit message (Collapse)AuthorLines
2017-02-06Delete the `mk` folderAlex Crichton-382/+0
This commit deletes the old build system located in the `mk` folder as it's now been obsoleted for two cycles and is replaced by rustbuild.
2016-11-08rustbuild: Tweak for vendored dependenciesAlex Crichton-1/+2
A few changes are included here: * The `winapi` and `url` dependencies were dropped. The source code for these projects is pretty weighty, and we're about to vendor them, so let's not commit to that intake just yet. If necessary we can vendor them later but for now it shouldn't be necessary. * The `--frozen` flag is now always passed to Cargo, obviating the need for tidy's `cargo_lock` check. * Tidy was updated to not check the vendor directory Closes #34687
2016-09-03Add rustc version info (git hash + date) to dist tarballJoseph Dunne-0/+1
fixes #32444
2016-08-12Produce source package in rust-installer format in addition to vanilla tarballDiggory Blake-9/+24
Copy source files from rust code Add missing wildcard Remove unused function Remove use of tar --transform
2016-05-05specify the archive file as stdoutSébastien Marie-1/+2
If the `-f` option isn't given, GNU tar will use environment variable `TAPE` first, and next use the compiled-in default, which isn't necessary `stdout` (it is the tape device `/dev/rst0` under OpenBSD for example).
2016-04-19mk: Bootstrap from stable instead of snapshotsAlex Crichton-1/+1
This commit removes all infrastructure from the repository for our so-called snapshots to instead bootstrap the compiler from stable releases. Bootstrapping from a previously stable release is a long-desired feature of distros because they're not fans of downloading binary stage0 blobs from us. Additionally, this makes our own CI easier as we can decommission all of the snapshot builders and start having a regular cadence to when we update the stage0 compiler. A new `src/etc/get-stage0.py` script was added which shares some code with `src/bootstrap/bootstrap.py` to read a new file, `src/stage0.txt`, which lists the current stage0 compiler as well as cargo that we bootstrap from. This script will download the relevant `rustc` package an unpack it into `$target/stage0` as we do today. One problem of bootstrapping from stable releases is that we're not able to compile unstable code (e.g. all the `#![feature]` directives in libcore/libstd). To overcome this we employ two strategies: * The bootstrap key of the previous compiler is hardcoded into `src/stage0.txt` (enabled as a result of #32731) and exported by the build system. This enables nightly features in the compiler we download. * The standard library and compiler are pinned to a specific stage0, which doesn't change, so we're guaranteed that we'll continue compiling as we start from a known fixed source. The process for making a release will also need to be tweaked now to continue to cadence of bootstrapping from the previous release. This process looks like: 1. Merge `beta` to `stable` 2. Produce a new stable compiler. 3. Change `master` to bootstrap from this new stable compiler. 4. Merge `master` to `beta` 5. Produce a new beta compiler 6. Change `master` to bootstrap from this new beta compiler. Step 3 above should involve very few changes as `master` was previously bootstrapping from `beta` which is the same as `stable` at that point in time. Step 6, however, is where we benefit from removing lots of `#[cfg(stage0)]` and get to use new features. This also shouldn't slow the release too much as steps 1-5 requires little work other than waiting and step 6 just needs to happen at some point during a release cycle, it's not time sensitive. Closes #29555 Closes #29557
2016-04-18rustbuild: Add support for compiletest test suitesAlex Crichton-1/+0
This commit adds support in rustbuild for running all of the compiletest test suites as part of `make check`. The `compiletest` program was moved to `src/tools` (like `rustbook` and others) and is now just compiled like any other old tool. Each test suite has a pretty standard set of dependencies and just tweaks various parameters to the final compiletest executable. Note that full support is lacking in terms of: * Once a test suite has passed, that's not remembered. When a test suite is requested to be run, it's always run. * The arguments to compiletest probably don't work for every possible combination of platforms and testing environments just yet. There will likely need to be future updates to tweak various pieces here and there. * Cross compiled test suites probably don't work just yet, support for that will come in a follow-up patch.
2016-03-12mk: Fix `make dist`Alex Crichton-2/+1
With the movement of the erro-index-generator and rustbook, need to update the rules in `make dist`.
2016-02-20mk: Add missing rustbuild dirs to `dist`Alex Crichton-0/+3
Forgot to add a few directories to `make dist` so `--enable-rustbuild` can continue to work. Closes #31801
2016-02-14Rename `error-index-generator` to `error_index_generator`Dirk Gadsden-1/+1
This is because the tool compiler passes the name of the tool as a command line `--cfg`. The improved session config parser is stricter and no longer permits invalid meta items (such as "error-index-generator").
2015-12-04mk: Fix `make dist`Alex Crichton-1/+0
Now that AUTHORS.txt no longer exists we shouldn't try to package it.
2015-11-02mk: Add rtstartup to distAlex Crichton-0/+1
Needed for distcheck to pass and to have a working tarball.
2015-10-25mk: Package libstdc++-6.dll on x86_64 MinGWAlex Crichton-2/+2
We don't need the support libgcc SEH library, but we do need the C++ standard library for running the compiler itself. cc #29208
2015-10-23mk: Really fix win32 distributionsAlex Crichton-7/+7
The macro in question doesn't actually have a $(2) argument so $(1) should really be used as it's the target in question.
2015-10-22mk: Prefer target libs coming from their hostAlex Crichton-1/+19
It looks like the target libs aren't actually the same across hosts so instead of always packaging the target libs from CFG_BUILD take the target libs from the host if we have them and then only failing that do we take them from CFG_BUILD. Closes #29228
2015-10-20mk: Fix win32 runtime DLL installationAlex Crichton-2/+2
These were accidentally placed into the wrong package (std) when they should have been in the main package (rustc)
2015-10-15mk: Split out a standard library packageAlex Crichton-27/+73
This commit splits out the standard library from the current 'rustc' package into a new 'rust-std' package. This is the basis for the work on easily packaging compilers that can cross-compile to new targets.
2015-09-19Don't include *.pyc files in source tarballChris Wong-0/+1
Closes #28508
2015-05-22mk: Don't build compiler-docs before installation. #25699Brian Anderson-3/+3
The install target depends on compiler-docs but 'all' does not. This means that running 'make && make install' will run additional doc builds and tests during installation, which hides bugs in the build. For now this just unconditionally stops building compiler docs.
2015-05-19mk: Update `make dist` for MSVC targetsAlex Crichton-1/+10
This commit updates the `dist` target for MSVC to not build the mingw components and to also ensure that the `llvm-ar.exe` binary is ferried along into the right location for installs.
2015-05-08mk: Add a missing folder to the dist directoryAlex Crichton-0/+1
This fixes the `distcheck` target and nightly builds.
2015-03-16extract libcollections tests into libcollectionstestJorge Aparicio-0/+1
2015-02-12Upgrade rust-installerBrian Anderson-10/+11
2015-01-08mk: Add rustbook to source dist 1.0.0-alphaBrian Anderson-0/+1
2015-01-03auto merge of #20456 : brson/rust/packaging2, r=alexcrichtonbors-106/+2
2015-01-02Remove .pkg and .exe installersBrian Anderson-106/+2
2015-01-01mk: Put the version number somewhere discoverable in the installerBrian Anderson-1/+3
The binaries for some release channels to not contain the version number, which makes it hard for scripts to determine the version number.
2014-12-31mk: The doc directory is no longer included in the main packageBrian Anderson-1/+1
2014-12-31rollup merge of #20375: brson/windistfixAlex Crichton-2/+2
2014-12-31mk: Fix the location of a temp dir when building installer on winBrian Anderson-2/+2
2014-12-30rollup merge of #20344: brson/srctarballsAlex Crichton-1/+1
Easier for scripts to figure out which artifact is the source code.
2014-12-30mk: Append -src to source tarballs for easier identificationBrian Anderson-1/+1
2014-12-29Simplify some logic in dist.mkBrian Anderson-6/+5
2014-12-29mk: Package mingw components in unix installer on windowsBrian Anderson-2/+33
This puts stdc++ and the unwinding dll into the main package and creates a separate rust-mingw package for everything else.
2014-12-29mk: Make distcheck build binary tarballs on windowsBrian Anderson-19/+10
These work, but aren't being built and uploaded because the bots run 'distcheck' not 'dist'.
2014-12-29Install copyright information and package docsBrian Anderson-1/+31
This distributes docs in a separate package called rust-docs. The rust-packaging project will combine it with Rust and Cargo into a single installer in a variety of formats.
2014-12-29Upgrade rust-installer to v2Brian Anderson-1/+3
2014-12-17Only try to install the doc directory if it exists.Ken Tossell-3/+11
If you configure with `--disable-docs`, the `doc` directory does not get generated, so `cp -r doc dist/` fails when you `make dist{,-tar-bins,-doc}` or `make install`
2014-12-11Use rust-installer for installationBrian Anderson-7/+15
This is just a refactoring of the current installer so that Rust and Cargo use the same codebase. cc #16456
2014-12-10Don't try to dist src/README.md which does not existBrian Anderson-1/+0
2014-12-06- Support gcc-less installation on Windows. To do so in unattended mode ↵Vadim Chugunov-2/+3
run:`<intaller>.exe /TYPE=compact /SILENT`. - Do not require admin privileges to install.
2014-11-10Attempt to fix the problem with failing distcheck.Vitali Haravy-1/+1
2014-10-07Rename RELEASES.txt to RELEASES.md. It's markdown.Brian Anderson-1/+1
2014-10-01Remove libuv, gypAaron Turon-1/+1
This commit removes the libuv and gyp submodules, as well as all build infrastructure related to them. For more context, see the [runtime removal RFC](https://github.com/rust-lang/rfcs/pull/230) [breaking-change]
2014-09-29mk: Start producing binary tarballs on windowsBrian Anderson-1/+1
We may use these for creating combined rust/cargo installers
2014-09-11Package rustc's mingw dependencies into Windows installer.Vadim Chugunov-1/+1
gcc, ld, ar, dlltool, windres go into $(RUST)/bin/rustlib/<triple>/bin/ platform libraries and startup objects got into $(RUST)/bin/rustlib/<triple>/lib/
2014-09-09Fix naming of windows installerBrian Anderson-1/+1
2014-09-09Fix snapshot.py for win64Brian Anderson-1/+1
2014-07-23mk: Have the various flavors of 'dist' install all targets by defaultBrian Anderson-4/+13
Closes #15711
2014-07-22Revert "Made 'make install' include libs for additional targets"Brian Anderson-21/+13
This reverts commit 87334fb05ff2a665419241d877c13d6c4770a3f4. Conflicts: mk/install.mk