1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-05 19:55:47 +03:00

feat: add support for compiling open/r on 64-bit arm linux (#95)

Summary:
Description:

Prior to this patch it was not possible to run open/r on linux running on ARM due to cmake and openssl being harded to download/compile for the x86_64 arch.

In order to prevent such problem this patch actively compiles cmake instead of using pre-compiled binaries and also allows the OpenSSLBuilder to provide the correct build args to openssl, thus not trying to compile or run x86_64 software.

Pull Request resolved: https://github.com/facebook/openr/pull/95

Test Plan: * built the project by using ./build/build_openr.sh

Reviewed By: wez

Differential Revision: D28224684

Pulled By: cooperlees

fbshipit-source-id: 9de61dc6d7dcf7116ec5c67f3f165cd4a4bb5e5c
This commit is contained in:
Guilherme Íscaro
2021-06-01 11:39:32 -07:00
committed by Facebook GitHub Bot
parent 1cedfc1019
commit cbe7c9dd5b
5 changed files with 54 additions and 17 deletions

View File

@@ -5,6 +5,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals
import platform
import re
import shlex
import sys
@@ -70,10 +71,18 @@ class HostType(object):
self.distro = distro
# The OS/distro version if known
self.distrovers = distrovers
machine = platform.machine().lower()
if "arm" in machine or "aarch" in machine:
self.isarm = True
else:
self.isarm = False
def is_windows(self):
return self.ostype == "windows"
def is_arm(self):
return self.isarm
def is_darwin(self):
return self.ostype == "darwin"