Skip to content

Commit

Permalink
Clarify the relationship of build with no links
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 17, 2014
1 parent 67ffc28 commit 2e62e25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion text/0000-cargo-build-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ separate set of dependencies solves a number of constraints:
extra support code.

This RFC does not propose a convention of what to name the build script files.
Like `links`, it will be illegal to specify `build` without specifying `links`.

Unlike `links`, it will be legal to specify `build` without specifying `links`.
This is motivated by the code generation case study below.

### Inputs

Expand Down Expand Up @@ -301,6 +303,8 @@ native code for the current package:
available (`foo`) will be those in `links` for immediate dependencies of the
package being built. Note that each metadata `key` will be uppercased and `-`
characters transformed to `_` for the name of the environment variable.
* If `links` is not present, then the command is unconditionally run with 0
command line arguments, otherwise:
* The libraries that are requested via `links` are passed as command line
arguments. The pre-built libraries in `links` (detailed above) will be
filtered out and not passed to the build command. If there are no libraries to
Expand Down

0 comments on commit 2e62e25

Please sign in to comment.