enable musl32_time64 and musl_v1_2_3 for hexagon · rust-lang/libc@82cb126 (original) (raw)

`@@ -52,7 +52,7 @@ const CHECK_CFG_EXTRA: &[(&str, &[&str])] = &[

`

52

52

`];

`

53

53

``

54

54

`` /// Musl architectures that set #define _REDIR_TIME64 1.

``

55

``

`-

const MUSL_REDIR_TIME64_ARCHES: &[&str] = &["arm", "mips", "powerpc", "x86"];

`

``

55

`+

const MUSL_REDIR_TIME64_ARCHES: &[&str] = &["arm", "hexagon", "mips", "powerpc", "x86"];

`

56

56

``

57

57

`fn main() {

`

58

58

`// Avoid unnecessary re-building.

`

`@@ -110,8 +110,8 @@ fn main() {

`

110

110

`// OpenHarmony uses a fork of the musl libc

`

111

111

`let musl = target_env == "musl" || target_env == "ohos";

`

112

112

``

113

``

`-

// loongarch64 and ohos only exist with recent musl

`

114

``

`-

if target_arch == "loongarch64" || target_env == "ohos" {

`

``

113

`+

// loongarch64, hexagon, and ohos only exist with recent musl

`

``

114

`+

if target_arch == "loongarch64" || target_arch == "hexagon" || target_env == "ohos" {

`

115

115

` musl_v1_2_3 = true;

`

116

116

`}

`

117

117

``