Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
dagit committed Sep 30, 2024
2 parents 25be6f7 + f86d063 commit cdfc034
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
10 changes: 8 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-Wl,-platform_version,macOS,11.0,12.0"]
rustflags = [
"-C", "link-arg=-mmacosx-version-min=10.13",
"-C", "link-arg=-Wl,-no_fixup_chains"
]

[target.aarch64-apple-darwin]
rustflags = ["-C", "link-arg=-Wl,-platform_version,macOS,11.0,12.0"]
rustflags = [
"-C", "link-arg=-mmacosx-version-min=10.13",
"-C", "link-arg=-Wl,-no_fixup_chains"
]
10 changes: 5 additions & 5 deletions .github/workflows/onpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ jobs:
- name: Set MACOSX_DEPLOYMENT_TARGET (macOS)
if: ${{ matrix.is-osx }}
run: echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> $GITHUB_ENV
run: echo "MACOSX_DEPLOYMENT_TARGET=10.13" >> $GITHUB_ENV

- name: Set CFLAGS and LDFLAGS for Native Code
if: ${{ matrix.is-osx }}
run: |
echo "CFLAGS=-mmacosx-version-min=11.0" >> $GITHUB_ENV
echo "LDFLAGS=-mmacosx-version-min=11.0" >> $GITHUB_ENV
echo "CFLAGS=-mmacosx-version-min=10.13" >> $GITHUB_ENV
echo "LDFLAGS=-mmacosx-version-min=10.13" >> $GITHUB_ENV
- name: Build for x86_64-apple-darwin (macOS)
if: ${{ matrix.is-osx }}
Expand All @@ -230,7 +230,7 @@ jobs:
- name: Check min version (x86)
if: ${{ matrix.is-osx }}
run: |
otool -l target/x86_64-apple-darwin/release/annelid | grep -A 3 LC_BUILD_VERSION
otool -l target/x86_64-apple-darwin/release/annelid | grep -A 3 -E 'LC_BUILD_VERSION|LC_VERSION_MIN_MACOSX'
- name: Build for aarch64-apple-darwin (macOS)
if: ${{ matrix.is-osx }}
Expand All @@ -240,7 +240,7 @@ jobs:
- name: Check min version (arm)
if: ${{ matrix.is-osx }}
run: |
otool -l target/aarch64-apple-darwin/release/annelid | grep -A 3 LC_BUILD_VERSION
otool -l target/aarch64-apple-darwin/release/annelid | grep -A 3 -E 'LC_BUILD_VERSION|LC_VERSION_MIN_MACOSX'
- name: Create universal binary (macOS)
if: ${{ matrix.is-osx }}
Expand Down

0 comments on commit cdfc034

Please sign in to comment.