about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-01-16 15:02:31 -0800
committerAlex Crichton <alex@alexcrichton.com>2018-01-23 14:13:47 -0800
commit8bde2acfc7876148ebfe192780434dbb969eded3 (patch)
tree214b953ac0b69b6185e8de690f7c4f8588287f95 /src/rustllvm/RustWrapper.cpp
parent4e3901d35f6a8652f67111e7272263c9e62ab3e1 (diff)
downloadrust-8bde2acfc7876148ebfe192780434dbb969eded3.tar.gz
rust-8bde2acfc7876148ebfe192780434dbb969eded3.zip
rustc: Add `-C lto=val` option
This commit primarily adds the ability to control what kind of LTO happens when
rustc performs LTO, namely allowing values to be specified to the `-C lto`
option, such as `-C lto=thin` and `-C lto=fat`. (where "fat" is the previous
kind of LTO, throw everything in one giant module)

Along the way this also refactors a number of fields which store information
about whether LTO/ThinLTO are enabled to unify them all into one field through
which everything is dispatched, hopefully removing a number of special cases
throughout.

This is intended to help mitigate #47409 but will require a backport as well,
and this would unfortunately need to be an otherwise insta-stable option.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions