Skip to content

Commit

Permalink
fix: link msvc dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Aug 11, 2024
1 parent 9111fcd commit 14f6d7f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tokio = { version = "1.35.1", features = [
] }
serde_json = { workspace = true }
futures-util = "0.3.30"
pyannote-rs = "0.2.2"
pyannote-rs = "0.2.4"

[dev-dependencies]

Expand Down
8 changes: 8 additions & 0 deletions scripts/pre_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ if (!process.env.GITHUB_ENV) {
}
if (hasFeature('cuda')) {
console.log(`$env:CUDA_PATH = "${cudaPath}"`)
console.log(`$env:KNF_STATIC_CRT = "0"`)
}
if (hasFeature('opencl')) {
console.log(`$env:CLBlast_DIR = "${exports.clblast}"`)
Expand Down Expand Up @@ -294,6 +295,13 @@ if (process.env.GITHUB_ENV) {
await fs.appendFile(process.env.GITHUB_ENV, cmakeBuildType)
}

if (hasFeature('cuda')) {
// link msvc dynamic
const staticCrt = 'KNF_STATIC_CRT=0\n'
console.log('Adding ENV', staticCrt)
await fs.appendFile(process.env.GITHUB_ENV, staticCrt)
}

if (hasFeature('older-cpu')) {
await fs.appendFile(process.env.GITHUB_ENV, `WHISPER_NO_AVX=ON\n`)
await fs.appendFile(process.env.GITHUB_ENV, `WHISPER_NO_AVX2=ON\n`)
Expand Down

0 comments on commit 14f6d7f

Please sign in to comment.