wrap some paths to handle spaces on windows #110

Merged
MartinFouilleul merged 1 commits from workflow-bugs into main 2023-09-18 10:01:34 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 37655abbf5 - Show all commits

View File

@ -558,7 +558,7 @@ def install(args):
print() print()
print("The tools will need to be on your PATH in order to actually use them.") print("The tools will need to be on your PATH in order to actually use them.")
if prompt("Would you like to automatically add Orca to your PATH?"): if prompt("Would you like to automatically add Orca to your PATH?"):
subprocess.run(["powershell", "scripts\\updatepath.ps1", bin_dir], check=True) subprocess.run(["powershell", "scripts\\updatepath.ps1", f'"{bin_dir}"'], check=True)
print("Orca has been added to your PATH. Restart any open terminals to use it.") print("Orca has been added to your PATH. Restart any open terminals to use it.")
else: else:
print("No worries. You can manually add Orca to your PATH in the Windows settings") print("No worries. You can manually add Orca to your PATH in the Windows settings")
@ -600,7 +600,7 @@ def uninstall(args):
print("Orca has been uninstalled from your system.") print("Orca has been uninstalled from your system.")
print() print()
if prompt("Would you like to automatically remove Orca from your PATH?"): if prompt("Would you like to automatically remove Orca from your PATH?"):
subprocess.run(["powershell", "scripts\\updatepath.ps1", bin_dir, "-remove"], check=True) subprocess.run(["powershell", "scripts\\updatepath.ps1", f'"{bin_dir}"', "-remove"], check=True)
print("Orca has been removed from your PATH.") print("Orca has been removed from your PATH.")
else: else:
print("Orca has been uninstalled from your system. You may wish to remove it from your PATH.") print("Orca has been uninstalled from your system. You may wish to remove it from your PATH.")

View File

@ -104,7 +104,7 @@ def cflags(args):
print() print()
print("Complete clang example:") print("Complete clang example:")
print() print()
print(f"clang --target=wasm32 --no-standard-libraries -mbulk-memory -g -O2 -D__ORCA__ -Wl,--no-entry -Wl,--export-dynamic -isystem {sysinclude} -I {include} -I {extinclude} {orcac} {libcsource} your-main.c") print(f"clang --target=wasm32 --no-standard-libraries -mbulk-memory -g -O2 -D__ORCA__ -Wl,--no-entry -Wl,--export-dynamic -isystem \"{sysinclude}\" -I \"{include}\" -I \"{extinclude}\" \"{orcac}\" \"{libcsource}\" your-main.c")
print() print()
if not path_contains(os.getcwd(), args.srcdir): if not path_contains(os.getcwd(), args.srcdir):
print("If these paths look crazy to you, consider vendoring the source code into your") print("If these paths look crazy to you, consider vendoring the source code into your")