mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Fix runnable_cxx/test22898.d on macOS-arm64 (#14918)
Apple diverges wrt. `char` signedness: https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Handle-data-types-and-data-alignment-properly
This commit is contained in:
parent
c129fd01ad
commit
5bb19c7b4c
1 changed files with 20 additions and 8 deletions
|
@ -4,14 +4,26 @@ import core.stdc.config;
|
||||||
|
|
||||||
extern(C++):
|
extern(C++):
|
||||||
|
|
||||||
version (AArch64) version = UnsignedChar;
|
version (OSX)
|
||||||
version (ARM) version = UnsignedChar;
|
version = Darwin;
|
||||||
version (RISCV32) version = UnsignedChar;
|
else version (iOS)
|
||||||
version (RISCV64) version = UnsignedChar;
|
version = Darwin;
|
||||||
version (PPC) version = UnsignedChar;
|
else version (TVOS)
|
||||||
version (PPC64) version = UnsignedChar;
|
version = Darwin;
|
||||||
version (S390) version = UnsignedChar;
|
else version (WatchOS)
|
||||||
version (SystemZ) version = UnsignedChar;
|
version = Darwin;
|
||||||
|
|
||||||
|
version (Darwin) { /* signed on ARM too */ } else
|
||||||
|
{
|
||||||
|
version (AArch64) version = UnsignedChar;
|
||||||
|
version (ARM) version = UnsignedChar;
|
||||||
|
version (RISCV32) version = UnsignedChar;
|
||||||
|
version (RISCV64) version = UnsignedChar;
|
||||||
|
version (PPC) version = UnsignedChar;
|
||||||
|
version (PPC64) version = UnsignedChar;
|
||||||
|
version (S390) version = UnsignedChar;
|
||||||
|
version (SystemZ) version = UnsignedChar;
|
||||||
|
}
|
||||||
|
|
||||||
version (UnsignedChar)
|
version (UnsignedChar)
|
||||||
enum __c_char : ubyte;
|
enum __c_char : ubyte;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue