Skip to content

Commit c2e4b0e

Browse files
authored
Merge pull request #3 from 3Hren/patch-1
fix: support alternative compilers
2 parents b94c142 + 9ce028a commit c2e4b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-n-run.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ int main(int argc, char** argv) {
7474
create_directories(target.parent_path());
7575

7676
// https://stackoverflow.com/a/1003654/4247442
77-
string cmd = "tail -n +2 \"" + source.string() + "\" | g++ -o \"" + target.string() + "\" -xc++ -Wall -lstdc++fs -";
77+
string cmd = "tail -n +2 \"" + source.string() + "\" | c++ -o \"" + target.string() + "\" -xc++ -Wall -lstdc++fs -";
7878
if (system(cmd.c_str()) != 0) {
7979
exit(1);
8080
}

0 commit comments

Comments
 (0)