Skip to content

Commit 6dfac96

Browse files
committed
Merge remote-tracking branch 'official-hxcpp/master'
2 parents c9b8f34 + 3f6de84 commit 6dfac96

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

project/thirdparty/mbedtls-2.9.0/library/bignum.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,8 @@ int mbedtls_mpi_sub_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_sint
11141114
* Helper for mbedtls_mpi multiplication
11151115
*/
11161116
static
1117-
#if defined(__APPLE__) && defined(__arm__)
1117+
// Also a problem on x64 rosetta
1118+
#if defined(__APPLE__)
11181119
/*
11191120
* Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
11201121
* appears to need this to prevent bad ARM code generation at -O3.

tools/hxcpp/BuildTool.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ class BuildTool
13251325
process.exitCode();
13261326
process.close();
13271327

1328-
if (output.indexOf("aarch64") > -1)
1328+
if ( (output.indexOf("aarch64") > -1) || (output.indexOf("arm64") > -1) )
13291329
{
13301330
return "arm64";
13311331
}
@@ -2050,7 +2050,7 @@ class BuildTool
20502050
}
20512051
else if ( (new EReg("mac","i")).match(os) )
20522052
{
2053-
set64(defines,m64);
2053+
set64(defines,m64, arm64);
20542054
// Cross-compile?
20552055
if (defines.exists("linux"))
20562056
{

0 commit comments

Comments
 (0)