Skip to content

Commit 99ea567

Browse files
committed
fix: consistent macOS target at 14.0
Signed-off-by: Sam Gammon <[email protected]>
1 parent 2a25c31 commit 99ea567

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

.cargo/config.macos-arm64.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ rustflags = [
5454
# "-Zvirtual-function-elimination",
5555

5656
# Explicit macOS target version to align with C-layer code.
57-
"-Clink-arg=-mmacosx-version-min=15.0",
57+
"-Clink-arg=-mmacosx-version-min=14.0",
5858
]
5959

6060
[env]
@@ -68,5 +68,4 @@ OPENSSL_LIB_DIR = { value = "target/lib", relative = true }
6868
OPENSSL_INCLUDE_DIR = { value = "target/include", relative = true }
6969
SQLITE3_LIB_DIR = { value = "target/lib", relative = true }
7070
SQLITE3_INCLUDE_DIR = { value = "target/include", relative = true }
71-
MACOSX_DEPLOYMENT_TARGET = { value = "15.0" }
72-
71+
MACOSX_DEPLOYMENT_TARGET = { value = "14.0" }

.cargo/config.macos-x86_64.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ rustflags = [
5151
# "-Zvirtual-function-elimination",
5252

5353
# Explicit macOS target version to align with C-layer code.
54-
"-Clink-arg=-mmacosx-version-min=15.0",
54+
"-Clink-arg=-mmacosx-version-min=14.0",
5555
]
5656

5757
[env]
5858
ELIDE_ROOT = { value = ".", relative = true }
5959
SQLITE3_STATIC = { value = "1" }
6060
SQLITE3_LIB_DIR = { value = "target/lib", relative = true }
6161
SQLITE3_INCLUDE_DIR = { value = "target/include", relative = true }
62-
MACOSX_DEPLOYMENT_TARGET = { value = "15.0" }
63-
62+
MACOSX_DEPLOYMENT_TARGET = { value = "14.0" }

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ COVERAGE ?= yes
3030
BUILD_NATIVE_IMAGE ?= no
3131
BUILD_STDLIB ?= no
3232
RELEASE ?= no
33-
MACOS_MIN_VERSION ?= 12.3
33+
MACOS_MIN_VERSION ?= 14.0
3434
ENABLE_CCACHE ?= no
3535
ENABLE_SCCACHE ?= yes
3636
CUSTOM_JVM ?= no

crates/builder/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const DEBUG: &str = "debug";
4747
const RELEASE: &str = "release";
4848

4949
/// Minimum supported version of macOS.
50-
pub const MACOS_MIN: &str = "12.3";
50+
pub const MACOS_MIN: &str = "14.0";
5151

5252
/// Minimum supported version of Android.
5353
const android_api_version: &str = "21";

crates/builder/src/model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const DEBUG: &str = "debug";
3333
const RELEASE: &str = "release";
3434

3535
/// Minimum supported version of macOS.
36-
pub const MACOS_MIN: &str = "12.3";
36+
pub const MACOS_MIN: &str = "14.0";
3737

3838
/// Enumerates the types of build profiles which Elide supports.
3939
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]

packages/cli/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,7 @@ val darwinOnlyArgs = defaultPlatformArgs.plus(listOfNotNull(
17801780
"-R:MaximumHeapSizePercent=80",
17811781
"--initialize-at-build-time=sun.awt.resources.awtosx",
17821782
onlyIf(enableLto, "-H:NativeLinkerOption=-flto"),
1783+
onlyIf(TargetCriteria.allOf(elideTarget, Criteria.MacAmd64), "-H:NativeLinkerOption=-Wl,-ld_classic"),
17831784
"-H:NativeLinkerOption=$nativesPath/libdiag.a",
17841785
"-H:NativeLinkerOption=$nativesPath/libsqlitejdbc.a",
17851786
"-H:NativeLinkerOption=$nativesPath/libumbrella.a",

packages/graalvm/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ val buildRustNativesForHostRelease by tasks.registering(Exec::class) {
776776
executable = "cargo"
777777
args(baseCargoFlags.plus("--release"))
778778
environment("JAVA_HOME", System.getProperty("java.home"))
779-
environment("MACOSX_DEPLOYMENT_TARGET", "15.0")
779+
environment("MACOSX_DEPLOYMENT_TARGET", "14.0")
780780

781781
outputs.upToDateWhen { true }
782782
outputs.dir(targetDir)
@@ -789,7 +789,7 @@ val buildRustNativesForHostDebug by tasks.registering(Exec::class) {
789789
executable = "cargo"
790790
args(baseCargoFlags)
791791
environment("JAVA_HOME", System.getProperty("java.home"))
792-
environment("MACOSX_DEPLOYMENT_TARGET", "15.0")
792+
environment("MACOSX_DEPLOYMENT_TARGET", "14.0")
793793

794794
outputs.upToDateWhen { true }
795795
outputs.dir(targetDir)
@@ -802,7 +802,7 @@ val buildRustNativesForHost by tasks.registering(Exec::class) {
802802
executable = "cargo"
803803
args(baseCargoFlags.plus(listOfNotNull(if (isRelease) "--release" else null)))
804804
environment("JAVA_HOME", System.getProperty("java.home"))
805-
environment("MACOSX_DEPLOYMENT_TARGET", "15.0")
805+
environment("MACOSX_DEPLOYMENT_TARGET", "14.0")
806806

807807
outputs.upToDateWhen { true }
808808
outputs.dir(targetDir)

third_party/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ USE_NINJA ?= yes
2424
ENABLE_CCACHE ?= no
2525
ENABLE_SCCACHE ?= no
2626
ELIDE_ROOT ?= $(realpath $(shell pwd)/..)
27-
MACOS_MIN_VERSION ?= 12.3
27+
MACOS_MIN_VERSION ?= 14.0
2828

2929
NATIVE_TOOLS ?= boringssl sqlite apr
3030
LANGS ?= pkl

0 commit comments

Comments
 (0)