File: entry.sh

package info (click to toggle)
cpptrace 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,996 kB
  • sloc: cpp: 15,646; python: 962; ansic: 155; sh: 103; makefile: 86
file content (23 lines) | stat: -rw-r--r-- 408 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

echo "------------------------------------ BUILDING ------------------------------------"

cd jank/compiler+runtime

CC=clang CXX=clang++ ./bin/configure -GNinja -DCMAKE_BUILD_TYPE=Debug && ./bin/compile

cat > test.jank << EOF
(ns test)

(defn foo []
  (throw "meow"))

(defn -main [& args]
  (foo))
(-main)
EOF

./build/jank run test.jank
# gdb --args ./build/jank run test.jank

exec /bin/bash