From 0c1125a7dcec8f727a76be67ca98363f6ff11b5e Mon Sep 17 00:00:00 2001 From: Mattie Nash Date: Wed, 30 Jul 2025 22:34:48 -0500 Subject: [PATCH] Fixes the type of target-c-int-width in target jsons. In https://github.com/rust-lang/rust/pull/144218, the type of target-c-int-width was changed to an Option, when previously it could be parsed from a string. That change caused an error "error: error loading target specification: target-c-int-width: invalid type: string "32", expected u16 at line 13 column 27" This pr is meant to fix that. --- i386-code16-boot-sector.json | 2 +- i386-code16-stage-2.json | 2 +- i686-stage-3.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/i386-code16-boot-sector.json b/i386-code16-boot-sector.json index 3a51b364..9cf5c514 100644 --- a/i386-code16-boot-sector.json +++ b/i386-code16-boot-sector.json @@ -10,7 +10,7 @@ "max-atomic-width": 64, "position-independent-executables": false, "disable-redzone": true, - "target-c-int-width": "32", + "target-c-int-width": 32, "target-pointer-width": "32", "target-endian": "little", "panic-strategy": "abort", diff --git a/i386-code16-stage-2.json b/i386-code16-stage-2.json index 3a51b364..9cf5c514 100644 --- a/i386-code16-stage-2.json +++ b/i386-code16-stage-2.json @@ -10,7 +10,7 @@ "max-atomic-width": 64, "position-independent-executables": false, "disable-redzone": true, - "target-c-int-width": "32", + "target-c-int-width": 32, "target-pointer-width": "32", "target-endian": "little", "panic-strategy": "abort", diff --git a/i686-stage-3.json b/i686-stage-3.json index 227250d4..82fc22c6 100644 --- a/i686-stage-3.json +++ b/i686-stage-3.json @@ -10,7 +10,7 @@ "max-atomic-width": 64, "position-independent-executables": false, "disable-redzone": true, - "target-c-int-width": "32", + "target-c-int-width": 32, "target-pointer-width": "32", "target-endian": "little", "panic-strategy": "abort",