File tree Expand file tree Collapse file tree 5 files changed +34
-18
lines changed
Expand file tree Collapse file tree 5 files changed +34
-18
lines changed Original file line number Diff line number Diff line change 11_build
22.merlin
33* .swp
4+ * .so
Original file line number Diff line number Diff line change 1+ ## Meta
2+
3+ The project is forked from https://github.com/adamrk/llvm-ocaml-tutorial .
4+
5+ ## Build
6+
7+ ` opam install core async ctypes-foreign llvm menhir `
8+
9+ ` export LD_LIBRARY_PATH=/path/to/libbindings.so `
10+
11+ The path is ` _build/default/stubs/libbindings.so ` by default.
12+
13+ ## Run
14+
15+ ` ./path/to/bin/kaleidoscope.exe < example/mandel.kal `
Original file line number Diff line number Diff line change 11(executable
22 (name kaleidoscope)
3- (libraries
4- async
5- core
6- kaleidoscope_lib)
7- (link_deps (file ../stubs/libbindings.so))
3+ (libraries async core kaleidoscope_lib)
4+ (link_deps
5+ (file ../stubs/libbindings.so))
86 (link_flags -cclib -Lstubs -cclib -lbindings)
9- (preprocess (pps ppx_jane ppx_expect ppx_let)))
7+ (preprocess
8+ (pps ppx_jane ppx_expect ppx_let)))
Original file line number Diff line number Diff line change 44 let open Command.Let_syntax in
55 Command. basic ~summary: " Parse and print kaleidoscope"
66 [% map_open
7- let file = flag " file" (optional file ) ~doc: " FILE read input from file" in
7+ let file = flag " file" (optional string ) ~doc: " FILE read input from file" in
88 fun () -> Kaleidoscope_lib.Toplevel. main (match file with
99 | None -> `Stdin
1010 | Some file -> `File file)]
Original file line number Diff line number Diff line change 11(library
22 (name kaleidoscope_lib)
3- (libraries
4- async
5- core
6- ctypes.foreign
7- llvm
8- llvm.analysis
9- llvm.executionengine
10- llvm.target
11- llvm.scalar_opts
12- menhirLib)
13- (preprocess (pps ppx_jane ppx_expect ppx_let))
3+ (libraries
4+ async
5+ core
6+ ctypes.foreign
7+ llvm
8+ llvm.analysis
9+ llvm.executionengine
10+ llvm.target
11+ llvm.scalar_opts
12+ menhirLib)
13+ (preprocess
14+ (pps ppx_jane -allow-unannotated-ignores ppx_expect ppx_let))
1415 (inline_tests))
1516
1617(ocamllex lexer)
You can’t perform that action at this time.
0 commit comments