-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Implement support for Darwin PPC #20373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1ab3c10
3c7ef8d
0933ac9
d652367
e0c50c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -125,11 +125,16 @@ case $uos in | |
| ;; | ||
| *darwin* ) | ||
| myos="macosx" | ||
| CC="clang" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Likewise!
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Araq I assume that for MacOS hardcoding Clang does no good, since for x86 and aarch64 Clang is the default compiler anyway (both in Xcode and Macports, so nothing changes), while for ppc Clang should never be invoked (hardcoding breaks the build). |
||
| LINK_FLAGS="$LINK_FLAGS -ldl -lm" | ||
| if [ "$HOSTTYPE" = "x86_64" ] ; then | ||
| ucpu="amd64" | ||
| fi | ||
| case $ucpu in | ||
| *i386*|*amd64*|*aarch64*|*arm64*) | ||
| CC="clang" ;; | ||
| *ppc*) | ||
| CC="gcc" ;; | ||
| esac | ||
| ;; | ||
| *aix* ) | ||
| myos="aix" | ||
|
|
@@ -188,9 +193,27 @@ case $ucpu in | |
| if [ "$myos" = "linux" ] ; then | ||
| COMP_FLAGS="$COMP_FLAGS -m64" | ||
| LINK_FLAGS="$LINK_FLAGS -m64" | ||
| elif [ "$myos" = "freebsd" ] ; then | ||
| COMP_FLAGS="$COMP_FLAGS -m64" | ||
| LINK_FLAGS="$LINK_FLAGS -m64" | ||
| elif [ "$myos" = "macosx" ] ; then | ||
| COMP_FLAGS="$COMP_FLAGS -arch ppc64" | ||
| LINK_FLAGS="$LINK_FLAGS -arch ppc64" | ||
| fi | ||
| mycpu="powerpc64" ;; | ||
| *power*|*ppc* ) | ||
| *ppc ) | ||
| if [ "$myos" = "linux" ] ; then | ||
| COMP_FLAGS="$COMP_FLAGS -m32" | ||
| LINK_FLAGS="$LINK_FLAGS -m32" | ||
| elif [ "$myos" = "freebsd" ] ; then | ||
| COMP_FLAGS="$COMP_FLAGS -m32" | ||
| LINK_FLAGS="$LINK_FLAGS -m32" | ||
| elif [ "$myos" = "macosx" ] ; then | ||
| COMP_FLAGS="$COMP_FLAGS -arch ppc" | ||
| LINK_FLAGS="$LINK_FLAGS -arch ppc" | ||
| fi | ||
| mycpu="powerpc" ;; | ||
| *power* ) | ||
| if [ "$myos" = "freebsd" ] ; then | ||
| if [ "$ucpu" != "powerpc" ] ; then | ||
| COMP_FLAGS="$COMP_FLAGS -m64" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this affects the existing OSX and BSD targets!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Araq Thank you for pointing this out! I will fix that. Of course, BSD should not be affected in any way.
Give me few days please, I am just back to Taiwan and building gcc12 across several machines. I will deal with this and csources PR later this week, I hope.