cpp

Compile C or C++ via gcc/g++.

Classes

CppCompiler(*args, **kwargs)

Compiles the given C/C++ code.

class undertale.datasets.pipeline.compilers.cpp.CppCompiler(*args, **kwargs)

Bases: PipelineStep

Compiles the given C/C++ code.

Input:

C or C++ source code that can be written to a single file and compiled.

Output:

Replaces the current text field with the raw bytes of the compiled code and stores the original source in a metadata field called source.

Discards any samples that fail to compile and logs the compilation errors.