Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/services/chal.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ class CompilerInfo:
source_ext: str

COMPILER_INFOS: list[CompilerInfo] = [None] * (max(v for v in Compiler) + 1)
COMPILER_INFOS[Compiler.GCC] = CompilerInfo(Compiler.GCC, "c", "GCC 12.2.0 GNU11", "gcc", "c")
COMPILER_INFOS[Compiler.CLANG] = CompilerInfo(Compiler.CLANG, "c", "Clang 15.0.6 C11", "clang", "c")
COMPILER_INFOS[Compiler.GPP] = CompilerInfo(Compiler.GPP, "cpp", "G++ 12.2.0 GNU++17", "g++", "cpp")
COMPILER_INFOS[Compiler.CLANGPP] = CompilerInfo(Compiler.CLANGPP, "cpp", "Clang++ 15.0.6 C++17", "clang++", "cpp")
COMPILER_INFOS[Compiler.RUST] = CompilerInfo(Compiler.RUST, "rust", "Rustc 1.63", "rust", "rs")
COMPILER_INFOS[Compiler.PYTHON3] = CompilerInfo(Compiler.PYTHON3, "python", "CPython 3.11.2", "python3", "py")
COMPILER_INFOS[Compiler.JAVA] = CompilerInfo(Compiler.JAVA, "java", "OpenJDK 17.0.8", "java", "java")
COMPILER_INFOS[Compiler.ASMC] = CompilerInfo(Compiler.ASMC, "asm", "Gas x86_64 Linux 2.42 w/ libc", "asmc", "s")
COMPILER_INFOS[Compiler.ASMCPP] = CompilerInfo(Compiler.ASMCPP, "asm", "Gas x86_64 Linux 2.42 w/ libstdc++", "asmcpp", "s")
COMPILER_INFOS[Compiler.GCC] = CompilerInfo(Compiler.GCC, "c", "GCC 14.2.0 GNU11", "gcc", "c")
COMPILER_INFOS[Compiler.CLANG] = CompilerInfo(Compiler.CLANG, "c", "Clang 19.1.7 C11", "clang", "c")
COMPILER_INFOS[Compiler.GPP] = CompilerInfo(Compiler.GPP, "cpp", "G++ 14.2.0 GNU++17", "g++", "cpp")
COMPILER_INFOS[Compiler.CLANGPP] = CompilerInfo(Compiler.CLANGPP, "cpp", "Clang++ 19.1.7 C++17", "clang++", "cpp")
COMPILER_INFOS[Compiler.RUST] = CompilerInfo(Compiler.RUST, "rust", "Rustc 1.85", "rust", "rs")
COMPILER_INFOS[Compiler.PYTHON3] = CompilerInfo(Compiler.PYTHON3, "python", "CPython 3.13.5", "python3", "py")
COMPILER_INFOS[Compiler.JAVA] = CompilerInfo(Compiler.JAVA, "java", "OpenJDK 21.0.11", "java", "java")
COMPILER_INFOS[Compiler.ASMC] = CompilerInfo(Compiler.ASMC, "asm", "Gas x86_64 Linux 2.44 w/ libc", "asmc", "s")
COMPILER_INFOS[Compiler.ASMCPP] = CompilerInfo(Compiler.ASMCPP, "asm", "Gas x86_64 Linux 2.44 w/ libstdc++", "asmcpp", "s")

class ChalConst:
STATE_AC = 1
Expand Down
Loading