Skip to content

Commit 8ea03f1

Browse files
Revert "stop specifying std, c++ has evolved already"
This reverts commit 4f06345.
1 parent 844d49b commit 8ea03f1

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

compile-and-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22
echo $1
33

4-
g++ -Wall -O3 -I gc-7.2/include/ -I include/ -lrt -lpthread $1 && ./a.out
4+
g++ -std=c++14 -Wall -Werror -O3 -I gc-7.2/include/ -I include/ -lrt -lpthread $1 && ./a.out
55

lib/cli.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ cli.run = (inpt, run_args) ->
2525

2626
relative = (pt) -> path.join(__dirname, '..', pt)
2727
args = [
28+
'-std=c++14',
2829
'-x', 'c++', # Take an input c++ file as STDIN
2930
'-'
3031
'-x', 'none', # And the following files aren't c++, start autodetecting pls

transpile-and-compile-and-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22
echo $1.js \> $1.cpp
33

4-
bin/js2cpp < $1.js > $1.cpp && g++ -Wall -O3 -I gc-7.2/include/ -I include/ -lrt -lpthread $1.cpp && ./a.out
4+
bin/js2cpp < $1.js > $1.cpp && g++ -std=c++14 -Wall -O3 -I gc-7.2/include/ -I include/ -lrt -lpthread $1.cpp && ./a.out
55

0 commit comments

Comments
 (0)