Skip to content

Commit 6d2f28a

Browse files
celinvaltedinski
authored andcommitted
Fix rmc --gen-c (rust-lang#673)
There was a regression introduced by b6e2bcad6cb that broke rmc --gen-c. This change fixes that. I am also fixing a random white space from my previous commit.
1 parent c247bc4 commit 6d2f28a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/rmc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def main():
2828
json_runnable_filename = base + "_runnable.json"
2929
goto_runnable_filename = base + "_runnable.goto"
3030
c_runnable_filename = base + "_runnable.c"
31+
restrictions_runnable_filename = os.path.join(
32+
args.target_dir, "debug", "deps") if args.restrict_vtable else None
3133
if EXIT_CODE_SUCCESS != rmc.compile_single_rust_file(args.input, base, json_runnable_filename, args, ["gen-c"]):
3234
return 1
3335

@@ -78,8 +80,7 @@ def main():
7880
c_filename,
7981
restrictions_filename,
8082
args.verbose,
81-
args.dry_run,
82-
args.restrict_vtable):
83+
args.dry_run):
8384
return 1
8485

8586
if args.gen_symbols:

scripts/rmc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ def compile_single_rust_file(
222222
input_filename,
223223
base,
224224
output_filename,
225-
226225
extra_args,
227226
symbol_table_passes=[]):
228227
if not extra_args.keep_temps:

0 commit comments

Comments
 (0)