diff options
| author | est31 <MTest31@outlook.com> | 2020-10-14 18:08:12 +0200 | 
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2020-10-15 12:01:53 +0200 | 
| commit | 64ba25d0f2137aade97a0cfabc9ad2547bd6b376 (patch) | |
| tree | b494474a8b400ede4d1633f53bf1c63e63651732 /compiler/rustc_target/src/spec/arm_linux_androideabi.rs | |
| parent | 596b0d5027bfb1b5835e17a25f56b00a1f6ff95f (diff) | |
| download | rust-64ba25d0f2137aade97a0cfabc9ad2547bd6b376.tar.gz rust-64ba25d0f2137aade97a0cfabc9ad2547bd6b376.zip  | |
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' {} \;
Diffstat (limited to 'compiler/rustc_target/src/spec/arm_linux_androideabi.rs')
| -rw-r--r-- | compiler/rustc_target/src/spec/arm_linux_androideabi.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/arm_linux_androideabi.rs b/compiler/rustc_target/src/spec/arm_linux_androideabi.rs index 7ea00800562..f9c69217460 100644 --- a/compiler/rustc_target/src/spec/arm_linux_androideabi.rs +++ b/compiler/rustc_target/src/spec/arm_linux_androideabi.rs @@ -9,7 +9,7 @@ pub fn target() -> Target { Target { llvm_target: "arm-linux-androideabi".to_string(), target_endian: "little".to_string(), - target_pointer_width: "32".to_string(), + pointer_width: 32, target_c_int_width: "32".to_string(), data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(), arch: "arm".to_string(),  | 
