1
Fork 0

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' {} \;
This commit is contained in:
est31 2020-10-14 18:08:12 +02:00
parent 596b0d5027
commit 64ba25d0f2
151 changed files with 151 additions and 151 deletions

View file

@ -6,7 +6,7 @@ pub fn target() -> Target {
data_layout: "e-m:e-p:32:32-i64:64-n32-S128".to_string(),
llvm_target: "riscv32".to_string(),
target_endian: "little".to_string(),
target_pointer_width: "32".to_string(),
pointer_width: 32,
target_c_int_width: "32".to_string(),
target_os: "none".to_string(),
target_env: String::new(),