Skip to content

Commit 8bf6a8a

Browse files
committed
base: Fix order of cbuildrt --workspace argument
1 parent bf7ed06 commit 8bf6a8a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xbstrap/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,7 @@ def run_cbuildrt(
24002400
)
24012401

24022402
result = subprocess.call(
2403-
["cbuildrt", "run", "--workspace", workspace, f.name],
2403+
["cbuildrt", "--workspace", workspace, "run", f.name],
24042404
env=host_environ,
24052405
)
24062406
if result != 0:
@@ -2873,7 +2873,7 @@ def run_program(
28732873

28742874
workspace = _util.ensure_cbuildrt_workspace()
28752875
proc = subprocess.Popen(
2876-
["cbuildrt", "run", "--workspace", workspace, f.name],
2876+
["cbuildrt", "--workspace", workspace, "run", f.name],
28772877
env=environ,
28782878
)
28792879
proc.wait()

xbstrap/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def ensure_cbuildrt_workspace():
7070
environ = os.environ.copy()
7171
build_environ_paths(environ, "PATH", prepend=[os.path.join(find_home(), "bin")])
7272
subprocess.check_call(
73-
["cbuildrt", "init", "--workspace", workspace],
73+
["cbuildrt", "--workspace", workspace, "init"],
7474
env=environ,
7575
)
7676
return workspace

0 commit comments

Comments
 (0)