Skip to content

Refactor: Move compiler specific code out of the compile_runner and to the compiler #120

@AndreCostaaa

Description

@AndreCostaaa

Currently, the compiler runner adds the gcc/g++ arguments

This is specific to gcc/g++ and should be handler by the compiler and not the runner

match output_path.to_str() {
Some(path) => {
// TODO this should probably somewhere else like `compiler` because this is
// specific to gcc/g++
args.push(String::from("-fdiagnostics-color=always"));
args.push(String::from("-o"));
args.push(String::from(path));

This refactor is important so we can start other build tools like xmake, cmake and java for instance

Metadata

Metadata

Assignees

Labels

p1Priority 1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions