Skip to content

Commit 05a2f6c

Browse files
Revert "use c++ 11"
This reverts commit 4ab4c07.
1 parent 4ab4c07 commit 05a2f6c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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++ -std=c++11 -Wall -Werror -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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ cli.run = (inpt, run_args) ->
2525

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

test/prepare.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ global.output_of = (program, options) ->
1414
transpile program, options
1515
sh([
1616
process.env['GPP_BINARY'] or 'g++',
17-
'-std=c++11',
17+
'-std=c++14',
1818
'/tmp/js2ctests.cpp',
1919
'-I include/',
2020
'-lrt',

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++ -std=c++11 -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)