diff --git a/dmoj/executors/compiled_executor.py b/dmoj/executors/compiled_executor.py index f19e965ab..f3fd097ff 100644 --- a/dmoj/executors/compiled_executor.py +++ b/dmoj/executors/compiled_executor.py @@ -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) diff --git a/dmoj/utils/helper_files.py b/dmoj/utils/helper_files.py index e0b42546b..3b13aa163 100644 --- a/dmoj/utils/helper_files.py +++ b/dmoj/utils/helper_files.py @@ -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.