mirror of
https://github.com/mii443/esaxx-rs.git
synced 2025-12-03 11:08:27 +00:00
Trying to fix stdlib issue in tokenizers.
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -212,7 +212,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "esaxx-rs"
|
name = "esaxx-rs"
|
||||||
version = "0.1.8"
|
version = "0.1.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
"criterion",
|
"criterion",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "esaxx-rs"
|
name = "esaxx-rs"
|
||||||
version = "0.1.9"
|
version = "0.1.10"
|
||||||
authors = ["Nicolas Patry <patry.nicolas@protonmail.com>"]
|
authors = ["Nicolas Patry <patry.nicolas@protonmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "Wrapping around sentencepiece's esaxxx library."
|
description = "Wrapping around sentencepiece's esaxxx library."
|
||||||
|
|||||||
14
build.rs
14
build.rs
@@ -1,4 +1,5 @@
|
|||||||
#[cfg(feature = "cpp")]
|
#[cfg(feature = "cpp")]
|
||||||
|
#[cfg(not(target_os = "macos"))]
|
||||||
fn main() {
|
fn main() {
|
||||||
cc::Build::new()
|
cc::Build::new()
|
||||||
.cpp(true)
|
.cpp(true)
|
||||||
@@ -9,5 +10,18 @@ fn main() {
|
|||||||
.compile("esaxx");
|
.compile("esaxx");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "cpp")]
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
|
fn main() {
|
||||||
|
cc::Build::new()
|
||||||
|
.cpp(true)
|
||||||
|
.flag("-std=c++11")
|
||||||
|
.flag("-stdlib=libc++")
|
||||||
|
.static_crt(true)
|
||||||
|
.file("src/esaxx.cpp")
|
||||||
|
.include("src")
|
||||||
|
.compile("esaxx");
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "cpp"))]
|
#[cfg(not(feature = "cpp"))]
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|||||||
Reference in New Issue
Block a user