Skip to content

Commit

Permalink
Update build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jblindsay committed May 19, 2024
1 parent 953a251 commit ef96617
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,18 @@ def build(do_clean=False, exclude_runner=False, create_zip_artifact=False):


print("Compiling...")
if platform.system() != 'Linux':
result = subprocess.run(['cargo', 'build', "--release"], stdout=subprocess.PIPE)
if len(result.stdout) > 0:
print(result.stdout)
else:
print("Compiling for musl target...")
result = subprocess.run(['cargo', 'build', "--release", "--target=x86_64-unknown-linux-musl"], stdout=subprocess.PIPE)
if len(result.stdout) > 0:
print(result.stdout)
result = subprocess.run(['cargo', 'build', "--release"], stdout=subprocess.PIPE)
if len(result.stdout) > 0:
print(result.stdout)
# if platform.system() != 'Linux':
# result = subprocess.run(['cargo', 'build', "--release"], stdout=subprocess.PIPE)
# if len(result.stdout) > 0:
# print(result.stdout)
# else:
# print("Compiling for musl target...")
# result = subprocess.run(['cargo', 'build', "--release", "--target=x86_64-unknown-linux-musl"], stdout=subprocess.PIPE)
# if len(result.stdout) > 0:
# print(result.stdout)

if not os.path.exists(output_plugin_dir):
os.makedirs(output_plugin_dir)
Expand Down

0 comments on commit ef96617

Please sign in to comment.