Commit eb32cb43 authored by SquallATF's avatar SquallATF Committed by Max Lv

Fix windows build failed #2666 #2711

parent 87b1496f
...@@ -14,5 +14,11 @@ print(printable_cmd) ...@@ -14,5 +14,11 @@ print(printable_cmd)
code = subprocess.call(args) code = subprocess.call(args)
if code == 0: if code == 0:
shutil.copyfile(sys.argv[sys.argv.index('-o') + 1], os.environ['RUST_ANDROID_GRADLE_TARGET']) sys_argv = sys.argv
if sys.platform == 'msys' or sys.platform == 'cygwin' or sys.platform == 'win32':
linkargs = list(filter(lambda s: s.startswith('@') and s.find('linker-arguments') != -1, sys.argv[1:]))
if linkargs != []:
with open(linkargs[0][1:]) as f:
sys_argv = f.read().splitlines()
shutil.copyfile(sys_argv[sys_argv.index('-o') + 1], os.environ['RUST_ANDROID_GRADLE_TARGET'])
sys.exit(code) sys.exit(code)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment