Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add relocation-model option to build profiles #1909

Closed
wants to merge 2 commits into from

Commits on Aug 17, 2015

  1. Add relocation-model option to build profiles

    rustc has an option to change the way symbol relocation happens at compile
    time. While the default of pic is often preferred, there are some cases where
    a user may need to output an object where the symbols are non-relocatable
    (some kernels, for instance).
    
    Expose the relocation-model argument to the user through the profiles stanza
    in Cargo.toml.
    worr committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    1c36a47 View commit details
    Browse the repository at this point in the history
  2. Allow Cargo.toml to control emitting other objects

    In addition to being able to specify how symbols relocations are handled, it's
    also useful for some projects to be able to specify different outputs for
    rustc to emit (asm, obj, etc.). Add an additional profile field to control
    that as well.
    worr committed Aug 17, 2015
    Configuration menu
    Copy the full SHA
    43a6ddc View commit details
    Browse the repository at this point in the history