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

Make only rustc_trans depend on rustc_llvm #41565

Merged
merged 5 commits into from
May 16, 2017
Merged

Commits on May 14, 2017

  1. Remove rustc_llvm dependency from rustc_metadata

    Move the code for loading metadata from rlibs and dylibs from
    rustc_metadata into rustc_trans, and introduce a trait to avoid
    introducing a direct dependency on rustc_trans.
    
    This means rustc_metadata is no longer rebuilt when LLVM changes.
    Robin Kruppe committed May 14, 2017
    Configuration menu
    Copy the full SHA
    1a24a59 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2017

  1. Remove rustc_llvm dependency from librustc

    Consequently, session creation can no longer initialize LLVM.
    The few places that use the compiler without going through
    rustc_driver/CompilerCalls thus need to be careful to manually
    initialize LLVM (via rustc_trans!) immediately after session
    creation.
    
    This means librustc is not rebuilt when LLVM changes.
    Robin Kruppe committed May 15, 2017
    Configuration menu
    Copy the full SHA
    8e4f315 View commit details
    Browse the repository at this point in the history
  2. Remove (direct) rustc_llvm dependency from rustc_driver

    This does not actually improve build times, since it still depends
    on rustc_trans, but is better layering and fits the multi-backend
    future slightly better.
    Robin Kruppe committed May 15, 2017
    Configuration menu
    Copy the full SHA
    e3f6e68 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    acdeedc View commit details
    Browse the repository at this point in the history
  4. Fix run-make/llvm-pass

    Robin Kruppe committed May 15, 2017
    Configuration menu
    Copy the full SHA
    04a16ff View commit details
    Browse the repository at this point in the history