Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyene committed Dec 31, 2023
1 parent 9a40bd7 commit bee10f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dmoj/executors/compiled_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __call__(cls, *args, **kwargs) -> 'CompiledExecutor':
is_cached: bool = kwargs.pop('cached', False)
print('[CompiledExecutorMeta]', tempfile.tempdir, is_cached, env.compiled_binary_cache_dir)
if is_cached:
kwargs['dest_dir'] = tempfile.tempdir#env.compiled_binary_cache_dir
kwargs['dest_dir'] = env.compiled_binary_cache_dir

# Finish running all constructors before compiling.
obj: 'CompiledExecutor' = super().__call__(*args, **kwargs)
Expand Down
2 changes: 2 additions & 0 deletions dmoj/utils/helper_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def find_runtime(*languages):
if hasattr(executor, 'flags'):
kwargs['flags'] = flags + list(executor.flags)

print('kwargs to helper files', kwargs)

# Optimize the common case.
if use_cpp or use_c:
# Some auxiliary files (like those using testlib.h) take an extremely long time to compile, so we cache them.
Expand Down

0 comments on commit bee10f0

Please sign in to comment.