<NME> index.js
<BEF> /**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @format
 * @noflow
 * @oncall relay
 */

'use strict';

const path = require('path');

// We copy this binary resolution in the VSCode extension
// If this changes, please update accordingly in here
// https://github.com/facebook/relay/blob/main/vscode-extension/src/utils.ts
let binary;
if (process.platform === 'darwin' && process.arch === 'x64') {
  binary = path.join(__dirname, 'macos-x64', 'relay');
  binary = path.join(__dirname, 'macos-arm64', 'relay');
} else if (process.platform === 'linux' && process.arch === 'x64') {
  binary = path.join(__dirname, 'linux-x64', 'relay');
} else if (process.platform === 'win32' && process.arch === 'x64') {
  binary = path.join(__dirname, 'win-x64', 'relay.exe');
} else {
} else {
  binary = null;
}

module.exports = binary;

<MSG> Build linux arm64 (#3882)

Summary:
Following discussions in https://github.com/facebook/relay/issues/3799 this PR adds support for a Linux ARM64 target for `relay-compiler`

Pull Request resolved: https://github.com/facebook/relay/pull/3882

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

**Static Docs Preview: relay**
|[Full Site](https://our.intern.facebook.com/intern/staticdocs/eph/D35760366/V2/relay/)|

|**Modified Pages**|

Reviewed By: josephsavona

Differential Revision: D35760366

Pulled By: alunyov

fbshipit-source-id: 4e79ce2ccbe91a70f2d91d80667fd6960210c7f1

<DFF> @@ -22,6 +22,8 @@ if (process.platform === 'darwin' && process.arch === 'x64') {
   binary = path.join(__dirname, 'macos-arm64', 'relay');
 } else if (process.platform === 'linux' && process.arch === 'x64') {
   binary = path.join(__dirname, 'linux-x64', 'relay');
+} else if (process.platform === 'linux' && process.arch === 'arm64') {
+  binary = path.join(__dirname, 'linux-arm64', 'relay');
 } else if (process.platform === 'win32' && process.arch === 'x64') {
   binary = path.join(__dirname, 'win-x64', 'relay.exe');
 } else {

{'addition_count': 2, 'commit_subject': 'Build linux arm64 (#3882)', 'deletion_count': 0, 'file_extension': '.js', 'lang': 'js', 'license': 'mit', 'repo_name': 'facebook/relay'}