Skip to content

Commit c144d6d

Browse files
authored
Merge branch 'release' into master
2 parents 628cf88 + 152bdbb commit c144d6d

1 file changed

Lines changed: 5 additions & 14 deletions

File tree

hstest/testing/execution/process/cpp_executor.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,11 @@ def __init__(self, source_name: str | None = None) -> None:
1818
self.executable = self.without_extension
1919
self.file_name = Path(self.executable + ".exe")
2020
else:
21-
self.executable = f"./{self.without_extension}"
22-
self.file_name = Path(self.without_extension)
23-
24-
def _compilation_command(self) -> list[str]:
25-
return [
26-
"g++",
27-
"-std=c++20",
28-
"-pipe",
29-
"-O2",
30-
"-static",
31-
"-o",
32-
self.file_name,
33-
self.runnable.file,
34-
]
21+
self.executable = f'./{self.without_extension}'
22+
self.file_name = self.without_extension
23+
24+
def _compilation_command(self):
25+
return ['g++', '-std=c++20', '-pipe', '-O2', '-static', '-o', self.file_name, self.runnable.file]
3526

3627
def _filter_compilation_error(self, error: str) -> str:
3728
return error

0 commit comments

Comments
 (0)