Skip to content
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

Build GCC 14.1 on aarch64-apple-darwin. #68

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/macos_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
name: GNAT macOS
runs-on: macos-14
steps:
- name: Set Xcode 15.3
run: sudo xcode-select --switch /Applications/Xcode_15.3.app

- name: Checkout Project
uses: actions/checkout@v2

Expand Down Expand Up @@ -134,6 +137,9 @@ jobs:
- name: Checkout Project
uses: actions/checkout@v2

- name: Set Xcode 15.3
run: sudo xcode-select --switch /Applications/Xcode_15.3.app

- uses: actions/download-artifact@v2
with:
name: alt-ergo
Expand Down
7 changes: 5 additions & 2 deletions specs/base_gcc.anod
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ class base_gcc(spec("common")):

@property
def url(self):
return "https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-%s/%s" \
# Use Simon's GCC 13.3 compiler on Mac OS X ARM64 for bootstrap
return ("https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-%s/%s" \
% (self.version, self.tarball)
if self.env.target.cpu.name == "x86_64" else
"https://github.com/simonjwright/alire-index.mac/releases/download/toolchain-13.2.1/gcc-13.3.0-aarch64.tar.gz")

@Anod.primitive()
def build(self):
# Download the archive
with HTTPSession() as http:
http.download_file(self.url, self["BUILD_DIR"], self.tarball)

# Exctract the archive
# Extract the archive
unpack_archive(self.tarball, self["INSTALL_DIR"], remove_root_dir=True)

# Delete the archive
Expand Down
6 changes: 1 addition & 5 deletions specs/gcc.anod
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GCC(spec("gh-artifact")):
if self.env.target.cpu.name == "x86_64"
else
"https://github.com/iains/gcc-14-branch/archive/refs/"
+ "tags/gcc-14.1-darwin-r0.tar.gz"
+ "tags/gcc-14.1-darwin-r1.tar.gz"
)
),
self.LocalSourceBuilder(name=patch_name)
Expand Down Expand Up @@ -140,10 +140,6 @@ class GCC(spec("gh-artifact")):

args.append("--disable-libcilkrts")

# Workaround for Xcode 12.5 bug on Intel
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100340
args.append("--without-build-config")

xcode = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
clu = "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"

Expand Down
Loading