Skip to content

Commit f99fc89

Browse files
committed
run tests in debug mode
1 parent c420326 commit f99fc89

File tree

1 file changed

+2
-2
lines changed
  • onlinejudge_verify/languages

1 file changed

+2
-2
lines changed

onlinejudge_verify/languages/rust.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def compile(self, path: pathlib.Path, *, basedir: pathlib.Path, tempdir: pathlib
233233
metadata = _cargo_metadata(cwd=path.parent)
234234
target = _ensure_target(metadata, path)
235235
subprocess.run(
236-
['cargo', 'build', '--release', *_target_option(target)],
236+
['cargo', 'build', *_target_option(target)],
237237
cwd=path.parent,
238238
check=True,
239239
)
@@ -242,7 +242,7 @@ def get_execute_command(self, path: pathlib.Path, *, basedir: pathlib.Path, temp
242242
path = basedir / path
243243
metadata = _cargo_metadata(cwd=path.parent)
244244
target = _ensure_target(metadata, path)
245-
return [str(pathlib.Path(metadata['target_directory'], 'release', *([] if _is_bin(target) else ['examples']), target['name']))]
245+
return [str(pathlib.Path(metadata['target_directory'], 'debug', *([] if _is_bin(target) else ['examples']), target['name']))]
246246

247247

248248
class RustLanguage(Language):

0 commit comments

Comments
 (0)