aboutsummaryrefslogtreecommitdiff
path: root/example/compile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example/compile.sh')
-rwxr-xr-xexample/compile.sh7
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 @@
1g++ example.cpp ../cube.o 1#!/bin/sh
2
3compiler="$((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

Generated with cgit - Back to sebastiano.tronto.net