Skip to content

Commit 4a30b87

Browse files
authored
Merge pull request #5628 from tautschnig/macos-arm64
Fix MacOS ARM platform configuration
2 parents 4d14272 + 4435150 commit 4a30b87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/util/config.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,13 @@ bool configt::set(const cmdlinet &cmdline)
998998
else
999999
ansi_c.long_double_width=8*8;
10001000
}
1001+
else if(os == "macos" && arch == "arm64")
1002+
{
1003+
// https://developer.apple.com/documentation/xcode/
1004+
// writing_arm64_code_for_apple_platforms#//apple_ref/doc/uid/TP40013702-SW1
1005+
ansi_c.char_is_unsigned = false;
1006+
ansi_c.long_double_width = 8 * 8;
1007+
}
10011008

10021009
// Let's check some of the type widths in case we run
10031010
// the same architecture and OS that we are verifying for.

0 commit comments

Comments
 (0)