Skip to content

Commit 1a9c4ca

Browse files
authored
fix building for aarch64-apple-visionos-sim on nightly (#1534)
fix duplicate simulator suffix, and replace macos-13 with macos-latest since macos-1e is sunet
1 parent 409b35c commit 1a9c4ca

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ jobs:
5454
rust: stable
5555
target: i686-unknown-linux-gnu
5656
- build: aarch64-macos
57-
os: macos-14
57+
os: macos-latest
5858
rust: stable
5959
target: aarch64-apple-darwin
6060
- build: x86_64-macos
61-
os: macos-13 # x86
61+
os: macos-latest
6262
rust: stable
6363
target: x86_64-apple-darwin
6464
- build: aarch64-ios
@@ -72,7 +72,7 @@ jobs:
7272
target: aarch64-apple-ios-sim
7373
no_run: --no-run
7474
- build: x86_64-ios-sim
75-
os: macos-13 # x86
75+
os: macos-latest
7676
rust: stable
7777
target: x86_64-apple-ios # Simulator
7878
no_run: --no-run
@@ -82,7 +82,7 @@ jobs:
8282
target: aarch64-apple-ios-macabi
8383
no_run: --no-run # FIXME(madsmtm): Fix running tests
8484
- build: x86_64-ios-macabi
85-
os: macos-13 # x86
85+
os: macos-latest
8686
rust: stable
8787
target: x86_64-apple-ios-macabi
8888
no_run: --no-run # FIXME(madsmtm): Fix running tests

src/target/llvm.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ impl TargetInfo<'_> {
9595
env => env,
9696
};
9797
let abi = match self.abi {
98-
"sim" => "simulator",
98+
"sim" => {
99+
if env != "simulator" {
100+
"simulator"
101+
} else {
102+
""
103+
}
104+
}
99105
"llvm" | "softfloat" | "uwp" | "vec-extabi" => "",
100106
"ilp32" => "_ilp32",
101107
"abi64" => "",

0 commit comments

Comments
 (0)