Skip to content

Commit 314385c

Browse files
committed
fix: compilation on x86 macOS
1 parent 9aa8c9e commit 314385c

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ jobs:
270270
run: |
271271
go version
272272
273+
- name: Install Protoc
274+
uses: arduino/setup-protoc@v3
275+
with:
276+
version: "29.4"
277+
273278
- name: print nvcc version
274279
run: |
275280
nvcc --version

crates/core/executor/src/minimal/arch/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
cfg_if::cfg_if! {
2-
// On x86_64 without profiling: use native backend only
3-
if #[cfg(all(target_arch = "x86_64", target_endian = "little", not(feature = "profiling")))] {
2+
// On x86_64 Linux without profiling: use native backend only
3+
if #[cfg(all(target_arch = "x86_64", target_endian = "little", target_os = "linux", not(feature = "profiling")))] {
44
mod x86_64;
55
pub use x86_64::*;
66
}
7-
// On x86_64 with profiling: use portable backend, build native only for tests
8-
else if #[cfg(all(target_arch = "x86_64", target_endian = "little", feature = "profiling"))] {
7+
// On x86_64 Linux with profiling: use portable backend, build native only for tests
8+
else if #[cfg(all(target_arch = "x86_64", target_endian = "little", target_os = "linux", feature = "profiling"))] {
99
mod portable;
1010
pub use portable::*;
1111

@@ -14,7 +14,7 @@ cfg_if::cfg_if! {
1414
#[allow(dead_code)]
1515
pub mod x86_64;
1616
}
17-
// On other architectures: use portable backend only
17+
// On other architectures/platforms: use portable backend only
1818
else {
1919
mod portable;
2020
pub use portable::*;

0 commit comments

Comments
 (0)