diff options
Diffstat (limited to '')
| -rwxr-xr-x | example/compile.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/example/compile.sh b/example/compile.sh index 4ce3bd2..fe9f133 100755 --- a/example/compile.sh +++ b/example/compile.sh | |||
| @@ -1 +1,6 @@ | |||
| 1 | g++ example.cpp ../cube.o | 1 | #!/bin/sh |
| 2 | |||
| 3 | compiler="$((g++ -v 2>/dev/null && echo "g++") ||\ | ||
| 4 | (clang++ -v 2>/dev/null && echo "clang++"))" | ||
| 5 | |||
| 6 | ${compiler} -std=c++14 example.cpp ../cube.o | ||
