Skip to content

Commit

Permalink
feat(native): Support darwin-aaarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Jun 20, 2023
1 parent 8147247 commit 9144755
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/cubejs-backend-shared/src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type IsNativeSupportedResult = true | {
};

export function isNativeSupported(): IsNativeSupportedResult {
if (process.platform === 'linux') {
if (process.platform === 'linux' && ['x64', 'arm64'].includes(process.arch)) {
if (detectLibc() === 'musl') {
displayCLIWarningOnce(
'is-native-supported',
Expand All @@ -72,12 +72,11 @@ export function isNativeSupported(): IsNativeSupportedResult {
return true;
}

if (process.platform === 'win32') {
if (process.platform === 'darwin' && ['x64', 'arm64'].includes(process.arch)) {
return true;
}

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

Expand Down

0 comments on commit 9144755

Please sign in to comment.