From f2fe03a474102c777efbb6463bc92caf230a283f Mon Sep 17 00:00:00 2001 From: Carson Date: Fri, 4 Oct 2019 21:47:27 -0400 Subject: [PATCH] Moved MAX_ERROR import --- dmoj/executors/clang_executor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dmoj/executors/clang_executor.py b/dmoj/executors/clang_executor.py index d8513a39e..6ffc4fbb9 100644 --- a/dmoj/executors/clang_executor.py +++ b/dmoj/executors/clang_executor.py @@ -1,9 +1,12 @@ -from .gcc_executor import GCCExecutor +from .gcc_executor import GCCExecutor, MAX_ERRORS class ClangExecutor(GCCExecutor): arch = 'clang_target_arch' + def get_flags(self): + return self.flags + ['-ferror-limit=%d' % MAX_ERRORS] + @classmethod def get_version_flags(cls, command): return ['--version']