Skip to content

Commit

Permalink
updated gn for adding support for risc-v platform
Browse files Browse the repository at this point in the history
  • Loading branch information
harry75369 committed Mar 17, 2024
1 parent 0deacb1 commit e297f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/fetch-gn
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ os.chdir(os.path.join(os.path.dirname(__file__), os.pardir))
gnzip = os.path.join(tempfile.mkdtemp(), 'gn.zip')
with open(gnzip, 'wb') as f:
OS = {'darwin': 'mac', 'linux': 'linux', 'linux2': 'linux', 'win32': 'windows'}[sys.platform]
cpu = {'aarch64': 'arm64', 'amd64': 'amd64', 'arm64': 'arm64', 'x86_64': 'amd64'}[platform.machine().lower()]
cpu = {'aarch64': 'arm64', 'amd64': 'amd64', 'arm64': 'arm64', 'x86_64': 'amd64', 'riscv64': 'riscv64'}[platform.machine().lower()]

rev = 'fe330c0ae1ec29db30b6f830e50771a335e071fb'
rev = '22581fb46c0c0c9530caa67149ee4dd8811063cf '
url = 'https://chrome-infra-packages.appspot.com/dl/gn/gn/{}-{}/+/git_revision:{}'.format(
OS,cpu,rev)
f.write(urlopen(url).read())
Expand Down

0 comments on commit e297f2e

Please sign in to comment.