Skip to content

Commit 1e7aa6f

Browse files
monojenkinsvargaz
andauthored
[runtime] Add a configure workaround for apple silicon + older config… (#40184)
….guess versions. <!-- Thank you for your Pull Request! If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed. Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number --> Co-authored-by: vargaz <[email protected]>
1 parent 8abf453 commit 1e7aa6f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/mono/configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,13 @@ case "$host" in
408408
host_sunos=yes
409409
;;
410410
*-*-darwin*)
411+
# Temporary workaround for Apple Silicon
412+
# config.guess returns arm-apple-darwin20.0.0
413+
if test $ac_cv_host = arm-apple-darwin20.0.0 -o $ac_cv_target = arm-apple-darwin20.0.0; then
414+
echo "You are running on Apple Silicon, but using an old config.guess, invoke configure like this:"
415+
echo "Run configure using ./configure --host=aarch64-apple-darwin20.0.0 --target=aarch64-apple-darwin20.0.0"
416+
exit 1
417+
fi
411418
parallel_mark="Disabled_Currently_Hangs_On_MacOSX"
412419
host_darwin=yes
413420
target_mach=yes

0 commit comments

Comments
 (0)