File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,9 @@ go_library(
17
17
"internal.h" ,
18
18
"libjsonnet.cpp" ,
19
19
],
20
- cdeps = [
21
- "@cpp_jsonnet//include:libjsonnet" ,
22
- ],
23
20
cgo = True ,
24
- copts = ["-Wall -Icpp-jsonnet/include " ], # keep
25
- cxxopts = ["-std=c++11 -Wall -Icpp-jsonnet/include " ],
21
+ copts = ["-Wall" ], # keep
22
+ cxxopts = ["-std=c++11 -Wall" ],
26
23
importpath = "github.com/google/go-jsonnet/c-bindings" ,
27
24
visibility = ["//visibility:private" ],
28
25
deps = [
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
"github.com/google/go-jsonnet/ast"
11
11
"github.com/google/go-jsonnet/formatter"
12
12
13
- // #cgo CXXFLAGS: -std=c++11 -Wall -I../cpp-jsonnet/include
13
+ // #cgo CXXFLAGS: -std=c++11 -Wall
14
14
// #include "internal.h"
15
15
"C"
16
16
)
Original file line number Diff line number Diff line change 2
2
#include < stdlib.h>
3
3
4
4
extern " C" {
5
- #include " libjsonnet.h"
5
+ void jsonnet_gc_min_objects (struct JsonnetVm *vm, unsigned v);
6
+ void jsonnet_gc_growth_trigger (struct JsonnetVm *vm, double v);
7
+ char *jsonnet_realloc (JsonnetVm *vm, char *str, size_t sz);
8
+
6
9
#include " internal.h"
7
10
}
8
11
You can’t perform that action at this time.
0 commit comments