Skip to content

Commit

Permalink
fix Fetching ninja on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeevPavel committed Feb 2, 2023
1 parent a96e822 commit 32eddad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion script/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def main():
ndk = common.ndk()

tools_dir = "depot_tools"
ninja = 'ninja.exe' if 'windows' == host else 'ninja'
ninja = 'ninja.bat' if 'windows' == host else 'ninja'
isIos = 'ios' == target or 'iosSim' == target
isIosSim = 'iosSim' == target

Expand Down
4 changes: 2 additions & 2 deletions script/checkout.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /usr/bin/env python3

import argparse, common, os, pathlib, platform, re, subprocess, sys
import common, os, re, subprocess, sys

def main():
os.chdir(os.path.join(os.path.dirname(__file__), os.pardir))
Expand Down Expand Up @@ -47,7 +47,7 @@ def main():

# fetch ninja
print("> Fetching ninja")
subprocess.check_call(["bin/fetch-ninja"])
subprocess.check_call(["python3", "bin/fetch-ninja"])

return 0

Expand Down

0 comments on commit 32eddad

Please sign in to comment.