Skip to content

Commit ea53e8d

Browse files
authored
feat(native): Support darwin-aaarch64 (#6745)
1 parent 8147247 commit ea53e8d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/cubejs-backend-shared/src/platform.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type IsNativeSupportedResult = true | {
5656
};
5757

5858
export function isNativeSupported(): IsNativeSupportedResult {
59-
if (process.platform === 'linux') {
59+
if (process.platform === 'linux' && ['x64', 'arm64'].includes(process.arch)) {
6060
if (detectLibc() === 'musl') {
6161
displayCLIWarningOnce(
6262
'is-native-supported',
@@ -72,12 +72,11 @@ export function isNativeSupported(): IsNativeSupportedResult {
7272
return true;
7373
}
7474

75-
if (process.platform === 'win32') {
75+
if (process.platform === 'darwin' && ['x64', 'arm64'].includes(process.arch)) {
7676
return true;
7777
}
7878

79-
// TODO(ovr): https://github.com/cube-js/cube/pull/6093
80-
if (process.platform === 'darwin' && process.arch === 'x64') {
79+
if (process.platform === 'win32' && process.arch === 'x64') {
8180
return true;
8281
}
8382

0 commit comments

Comments
 (0)