txlyre 1 year ago
parent
commit
a24355b501
2 changed files with 9 additions and 0 deletions
  1. 1 0
      langs/objc/Dockerfile
  2. 8 0
      langs/objc/run.sh

+ 1 - 0
langs/objc/Dockerfile

@@ -0,0 +1 @@
+RUN apt-get install gobjc -y

+ 8 - 0
langs/objc/run.sh

@@ -0,0 +1,8 @@
+IN="$(mktemp --suffix .m)"
+OUT="$(mktemp)"
+
+objc -o "$OUT" "$IN"
+
+if [ $? -eq 0 ]; then
+  exec "$OUT"
+fi