mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:26:23 -04:00
fix(loader): link with libc on OpenBSD to compile parser
Fix tree-sitter/tree-sitter#5333 Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
parent
1f9b274dfb
commit
2f747dc9b1
|
|
@ -1276,6 +1276,8 @@ impl Loader {
|
|||
} else {
|
||||
command.arg("-shared");
|
||||
command.arg("-Wl,--no-undefined");
|
||||
#[cfg(target_os = "openbsd")]
|
||||
command.arg("-lc");
|
||||
}
|
||||
command.args(cc_config.get_files());
|
||||
command.arg("-o").arg(output_path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue