Skip to content

Commit d234dc9

Browse files
authored
This appears to fix the linux cgo build of baml-cli for me inside a docker container (#1921)
I was able to mount the docker image and fuck with the file until it built. <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Fix Linux cgo build issue for `baml-cli` by updating C function declarations in `runtime.go`. > > - **Build Fix**: > - Add `#include <stdint.h>` in `runtime.go` to ensure proper type definitions for `uint32_t` and `int8_t`. > - Modify `trigger_callback` and `error_callback` function declarations to include parameter names for clarity. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 32d0860. You can [customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this summary. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
1 parent 45c3c28 commit d234dc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

engine/language_client_go/pkg/runtime.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package baml
22

33
/*
44
#include <stdlib.h>
5+
#include <stdint.h>
56
6-
extern void trigger_callback(uint32_t, int, const int8_t *, int);
7-
extern void error_callback(uint32_t, int, const int8_t *, int);
7+
extern void trigger_callback(uint32_t id, int is_done, const int8_t *content, int length);
8+
extern void error_callback(uint32_t id, int is_done, const int8_t *content, int length);
89
*/
910
import "C"
1011

0 commit comments

Comments
 (0)