Skip to content

Commit

Permalink
Merge pull request #273 from jonathanffon/patch-1
Browse files Browse the repository at this point in the history
fix compiler flags support of Cpp_original
  • Loading branch information
michaelb committed Jan 16, 2024
2 parents 551f583 + 1b7953e commit b3254d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interpreters/Cpp_original.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ impl Interpreter for Cpp_original {
let mut _file =
File::create(&self.main_file_path).expect("Failed to create file for rust-original");
write(&self.main_file_path, &self.code).expect("Unable to write to file for rust-original");
let output = Command::new(&self.compiler)
let output = Command::new(self.compiler.split_whitespace().next().unwrap())
.args(self.compiler.split_whitespace().skip(1))
.arg(&self.main_file_path)
.arg("-o")
.arg(&self.bin_path)
Expand Down

0 comments on commit b3254d8

Please sign in to comment.