Skip to content

Commit bc0faeb

Browse files
committed
Adding a file for testing using vendored compiler
1 parent be2d3de commit bc0faeb

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

jscomp/vendor.ninja

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
# This file builds everything using vendor/ocaml/ocamlopt
3+
# it is only for temporary testing
4+
# we in general do `ninja snapshot && ninja -f vendor.ninja`
5+
6+
ocamlopt = ../vendor/ocaml/bin/ocamlopt.opt
7+
# we relies on its dynamic behavior for finding a proper ocamlopt
8+
rule cc
9+
command = $ocamlopt $flags -o $out $in
10+
build ../lib/bsc.exe: cc ../lib/whole_compiler.mli ../lib/whole_compiler.ml
11+
flags = -I ../lib -g -w -a ../jscomp/stubs/ext_basic_hash_stubs.c
12+
subninja runtime/build.ninja
13+
subninja others/build.ninja
14+
subninja stdlib-402/build.ninja
15+
subninja test/build.ninja
16+
build all: phony runtime others stdlib-402 test

lib/build.ninja

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11

22
flags = -g -w -a ../jscomp/stubs/ext_basic_hash_stubs.c
33

4-
ocamlopt = ../vendor/ocaml/bin/ocamlopt.opt
4+
# ocamlopt = ../vendor/ocaml/bin/ocamlopt.opt
5+
ocamlopt = ocamlopt.opt
6+
# we relies on its dynamic behavior for finding a proper ocamlopt
57
rule cc
68
command = $ocamlopt $flags -o $out $in
79

0 commit comments

Comments
 (0)