Skip to content

Commit

Permalink
libtokenizers.a path should not depend on build source directory
Browse files Browse the repository at this point in the history
By relatively locating the library, one can just drop the pre-built
library in their own project to make it work.
  • Loading branch information
clems4ever committed Jul 23, 2023
1 parent 19c010f commit 701a2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokenizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tokenizers
// TODO packaging: how do we build the rust lib for distribution?

/*
#cgo LDFLAGS: ${SRCDIR}/libtokenizers.a -ldl -lstdc++
#cgo LDFLAGS: libtokenizers.a -ldl -lm -lstdc++
#include <stdlib.h>
#include "tokenizers.h"
*/
Expand Down

0 comments on commit 701a2a2

Please sign in to comment.