-
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (13 loc) · 710 Bytes
/
Makefile
File metadata and controls
17 lines (13 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
../target/release/libjsonnet.so:
cargo build --release -p libjsonnet
./c/libjsonnet_test_file: ./c/libjsonnet_test_file.c ../target/release/libjsonnet.so
gcc -L../target/release/ -ljsonnet ./c/libjsonnet_test_file.c -o ./c/libjsonnet_test_file
.PHONY: test-c
test-c: ./c/libjsonnet_test_file ../target/release/libjsonnet.so
export LD_LIBRARY_PATH=../target/release/
ldd ./c/libjsonnet_test_file
valgrind --leak-check=full ./c/libjsonnet_test_file test.jsonnet
../target/wasm32-wasi/release/jsonnet.wasm:
cd jsonnet && cargo wasi build --release -p libjsonnet && cd ..
test-js: ../target/wasm32-wasi/release/jsonnet.wasm
node --experimental-wasi-unstable-preview1 --experimental-wasm-bigint js/index