Skip to content

Commit f10b293

Browse files
committed
Fix target_family.
1 parent bc4e162 commit f10b293

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

compiler/rustc_target/src/spec/xtensa_esp32_none_elf.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ pub fn target() -> Target {
66
pointer_width: 32,
77
data_layout: "e-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32".to_string(),
88
arch: "xtensa".to_string(),
9-
9+
1010
options: TargetOptions {
1111
endian: "little".to_string(),
1212
c_int_width: "32".to_string(),
1313
os: "freertos".to_string(),
14-
target_family: Some("unix".to_string()),
14+
os_family: Some("unix".to_string()),
1515
env: "newlib".to_string(),
1616
vendor: "espressif".to_string(),
1717
linker_flavor: LinkerFlavor::Gcc,
@@ -46,4 +46,4 @@ pub fn target() -> Target {
4646
..Default::default()
4747
},
4848
}
49-
}
49+
}

compiler/rustc_target/src/spec/xtensa_esp8266_none_elf.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ pub fn target() -> Target {
66
pointer_width: 32,
77
data_layout: "e-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32".to_string(),
88
arch: "xtensa".to_string(),
9-
9+
1010
options: TargetOptions {
1111
endian: "little".to_string(),
1212
c_int_width: "32".to_string(),
1313
os: "freertos".to_string(),
14-
target_family: Some("unix".to_string()),
14+
os_family: Some("unix".to_string()),
1515
env: "newlib".to_string(),
1616
vendor: "espressif".to_string(),
1717
linker_flavor: LinkerFlavor::Gcc,
@@ -46,4 +46,4 @@ pub fn target() -> Target {
4646
..Default::default()
4747
},
4848
}
49-
}
49+
}

0 commit comments

Comments
 (0)