Remove l4re from the unsigned char operating system list
As noted in https://github.com/rust-lang/rust/pull/132975#issuecomment-2484645240, the default for userland apps is to follow the architecture defaults, the -funsigned-char flag only applies to kernel builds.
This commit is contained in:
parent
028ca8e616
commit
e8bcce77bb
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,8 @@ mod c_char_definition {
|
|||
// in clang/lib/Driver/ToolChains/Clang.cpp):
|
||||
// - PowerPC uses unsigned char for all targets except Darwin
|
||||
// - Arm/AArch64 uses unsigned char except for Darwin and Windows
|
||||
// - L4RE builds with -funsigned-char on all targets
|
||||
// Note: the L4RE kernel builds with -funsigned-char on all targets, but
|
||||
// we only have a target for userspace apps so it follows the architectures.
|
||||
if #[cfg(all(
|
||||
not(windows),
|
||||
not(target_vendor = "apple"),
|
||||
|
@ -113,7 +114,6 @@ mod c_char_definition {
|
|||
target_arch = "riscv32",
|
||||
target_arch = "s390x",
|
||||
target_arch = "xtensa",
|
||||
target_os = "l4re",
|
||||
)
|
||||
))] {
|
||||
pub type c_char = u8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue