Commit Graph

12 Commits

Author SHA1 Message Date
Felix S. Klock II 1905c98e92 Effective beta backport of 8d1083e319841624f64400e1524805a40d725439
(I recreated it by hand because the result of the cherry-pick wasn't worth
trying to salvage.)
2021-05-03 09:29:50 -04:00
Simonas Kazlauskas 007080b607 Target stack-probe support configurable finely
This adds capability to configure the target's stack probe support in a
more precise manner than just on/off. In particular now we allow
choosing between always inline-asm, always call or either one of those
depending on the LLVM version on a per-target basis.
2021-01-16 12:38:02 +02:00
Vadim Petrochenkov d41fe05d1a rustc_target: Move `linker_flavor` from `Target` to `TargetOptions` 2020-11-07 14:27:48 +03:00
Vadim Petrochenkov b294cc71a2 rustc_target: Move `target_vendor` from `Target` to `TargetOptions` 2020-11-07 14:27:47 +03:00
Vadim Petrochenkov d5fd31197f rustc_target: Move `target_env` from `Target` to `TargetOptions` 2020-11-07 14:27:47 +03:00
Vadim Petrochenkov 74ffb9b4a2 rustc_target: Move `target_os` from `Target` to `TargetOptions` 2020-11-07 14:27:47 +03:00
Vadim Petrochenkov 91533cf10e rustc_target: Move `target_endian` from `Target` to `TargetOptions` 2020-11-07 14:27:46 +03:00
Vadim Petrochenkov ffe65f825b rustc_target: Move `target_c_int_width` from `Target` to `TargetOptions` 2020-11-07 14:27:46 +03:00
est31 64ba25d0f2 Use integer literals for builtin target_pointer_width fields
Also change target_pointer_width to pointer_width.

Preparation for a subsequent type change of
target_pointer_width to an integer together with a rename
to pointer_width.

On its own, this commit breaks the build. I don't like making
build-breaking commits, but in this instance I believe that it
makes review easier, as the "real" changes of this PR can be
seen much more easily.

Result of running:

find compiler/rustc_target/src/spec/ -type f -exec sed -i -e 's/target_pointer_width: "\(.*\)"\..*,/pointer_width: \1,/g' {} \;
2020-10-15 12:01:53 +02:00
Vadim Petrochenkov 021fcbd90c rustc_target: Refactor away `TargetResult`
Construction of a built-in target is always infallible now, so `TargetResult` is no longer necessary.
2020-10-05 19:28:19 +03:00
Eric Huss c29a29cba0 Defer Apple SDKROOT detection to link time. 2020-09-25 12:07:46 -07:00
mark 9e5f7d5631 mv compiler to compiler/ 2020-08-30 18:45:07 +03:00