Skip to content

Commit 2ee71da

Browse files
author
crispasr integration
committed
fix(go): regenerate cgo LDFLAGS with the tool instead of hand-merging them
The merge conflicted on bindings/go/whisper.go because both branches add a library, and I resolved it by hand as a union. The set was right — the tool's output has the same 114 libraries, none added, none removed — but the ORDER differed, and the drift gate is a byte comparison of the generated line. That failed two jobs: "Bindings Tests (Go) / cgo-ldflags-drift" and the CI backend wiring audit, whose only remaining cause was "Go cgo LDFLAGS drift". This line is GENERATED from the CMake dependency graph by tools/sync_go_cgo_ldflags.py, so a hand-merge can only ever be right by luck: link order is a topological property of the graph, and adding two libraries changes where existing ones sort. Regenerated properly via cmake --graphviz. Verified with the tool's own gate rather than by eye: `sync_go_cgo_ldflags.py --check --dot <generated>` now reports "whisper.go LDFLAGS are up to date" and exits 0.
1 parent 6fcc869 commit 2ee71da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bindings/go/whisper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import (
2929
#cgo darwin LDFLAGS: -Wl,-rpath,${SRCDIR}/../../build-ninja-compile/ggml/src -Wl,-rpath,${SRCDIR}/../../build/ggml/src
3030
#cgo darwin LDFLAGS: -Wl,-rpath,${SRCDIR}/../../build-ninja-compile/ggml/src/ggml-blas -Wl,-rpath,${SRCDIR}/../../build-ninja-compile/ggml/src/ggml-metal
3131
#cgo darwin LDFLAGS: -Wl,-rpath,${SRCDIR}/../../build/ggml/src/ggml-blas -Wl,-rpath,${SRCDIR}/../../build/ggml/src/ggml-metal
32-
#cgo linux LDFLAGS: -Wl,--start-group -lggml-base -lggml-cpu -lggml -lwav2vec2-ggml -lcrispasr-core -ltada-encoder -ltada-codec -lcrisp_audio -lsnac -lmoonshine_tokenizer -lmimo_tokenizer -lbert-encoder -lfirered-asr -lopus -logg -lsidon -lchatterbox -lzonos-tts -lwespeaker -lwebrtc-vad -lvoxtral_tts -lvoxtral4b -lvoxtral -lvoxcpm2_tts -lvibevoice -ltitanet -ltada-tts -ltabcnn -lt5_translate -lsupertonic-tts -lspeecht5-tts -lsilero-lid -lsensevoice -lrvc-svc -lqwen3_tts -lqwen3_asr -lpyannote-seg -lpocket-tts -lpiper-tts -lpiano-transcription -lparler-tts -lparakeet -lparaformer -loutetts -lorpheus -lopenvoice2 -lomnivoice -lomniasr -lnemotron -lmt3 -lmoss_tts_local -lmoss_tts -lmoss_transcribe_diarize -lmoss_transcribe -lmoss_audio -lmoonshine_streaming -lmoonshine -lmiotts -lmini-omni2 -lmimo_asr -lmelotts -lmel-band-roformer -lmarblenet-vad -lm2m100 -llfm2_audio -lkyutai-stt -lkugelaudio -lkokoro -lirodori-tts -lindextts -lhtdemucs -lhiggs_stt -lgranite_speech -lgranite_nle -lglm-asr -lglint -lgigaam -lgemma4_e2b -lfunasr -lfireredtts3 -lfirered-vad -lfirered-lid -lfastpitch-tts -lf5-tts -lecapa-lid -ldots-tts -ldia-tts -lctc-align -lcsm-tts -lcrispasr_opusfile -lcrispasr_c2pa_native -lcrispasr-vad-encdec -lcrispasr-llama-core -lcrisp_truecase -lcrisp_punc -lcrisp_lid -lcrepe -lcosyvoice3_tts -lconfucius4-tts -lcohere -lcanary_qwen -lcanary_ctc -lcanary -lbtc-chords -lbeatrice-pitch -lbeat-this -lbasic-pitch -lbark-tts -lbananamind-tts -laudioseal -lark_asr -lcrispasr -Wl,--end-group -lm -lstdc++ -fopenmp
33-
#cgo darwin LDFLAGS: -lggml-base -lggml-cpu -lggml -lwav2vec2-ggml -lcrispasr-core -ltada-encoder -ltada-codec -lcrisp_audio -lsnac -lmoonshine_tokenizer -lmimo_tokenizer -lbert-encoder -lfirered-asr -lopus -logg -lsidon -lchatterbox -lzonos-tts -lwespeaker -lwebrtc-vad -lvoxtral_tts -lvoxtral4b -lvoxtral -lvoxcpm2_tts -lvibevoice -ltitanet -ltada-tts -ltabcnn -lt5_translate -lsupertonic-tts -lspeecht5-tts -lsilero-lid -lsensevoice -lrvc-svc -lqwen3_tts -lqwen3_asr -lpyannote-seg -lpocket-tts -lpiper-tts -lpiano-transcription -lparler-tts -lparakeet -lparaformer -loutetts -lorpheus -lopenvoice2 -lomnivoice -lomniasr -lnemotron -lmt3 -lmoss_tts_local -lmoss_tts -lmoss_transcribe_diarize -lmoss_transcribe -lmoss_audio -lmoonshine_streaming -lmoonshine -lmiotts -lmini-omni2 -lmimo_asr -lmelotts -lmel-band-roformer -lmarblenet-vad -lm2m100 -llfm2_audio -lkyutai-stt -lkugelaudio -lkokoro -lirodori-tts -lindextts -lhtdemucs -lhiggs_stt -lgranite_speech -lgranite_nle -lglm-asr -lglint -lgigaam -lgemma4_e2b -lfunasr -lfireredtts3 -lfirered-vad -lfirered-lid -lfastpitch-tts -lf5-tts -lecapa-lid -ldots-tts -ldia-tts -lctc-align -lcsm-tts -lcrispasr_opusfile -lcrispasr_c2pa_native -lcrispasr-vad-encdec -lcrispasr-llama-core -lcrisp_truecase -lcrisp_punc -lcrisp_lid -lcrepe -lcosyvoice3_tts -lconfucius4-tts -lcohere -lcanary_qwen -lcanary_ctc -lcanary -lbtc-chords -lbeatrice-pitch -lbeat-this -lbasic-pitch -lbark-tts -lbananamind-tts -laudioseal -lark_asr -lcrispasr -lm -lstdc++
32+
#cgo linux LDFLAGS: -Wl,--start-group -lggml-base -lggml-cpu -lggml -lwav2vec2-ggml -lcrispasr-core -ltada-encoder -ltada-codec -lcrisp_audio -lsnac -lmoonshine_tokenizer -lmimo_tokenizer -lbert-encoder -lchatterbox -lfirered-asr -lopus -logg -lsidon -lzonos-tts -lwespeaker -lwebrtc-vad -lvoxtral_tts -lvoxtral4b -lvoxtral -lvoxcpm2_tts -lvibevoice -ltitanet -ltada-tts -ltabcnn -lt5_translate -lsupertonic-tts -lspeecht5-tts -lsilero-lid -lsensevoice -lrvc-svc -lqwen3_tts -lqwen3_asr -lpyannote-seg -lpocket-tts -lpiper-tts -lpiano-transcription -lparler-tts -lparakeet -lparaformer -loutetts -lorpheus -lopenvoice2 -lomnivoice -lomniasr -lnemotron -lmt3 -lmoss_tts_local -lmoss_tts -lmoss_transcribe_diarize -lmoss_transcribe -lmoss_audio -lmoonshine_streaming -lmoonshine -lmiotts -lmini-omni2 -lmimo_asr -lmelotts -lmel-band-roformer -lmarblenet-vad -lm2m100 -llfm2_audio -lkyutai-stt -lkugelaudio -lkokoro -lirodori-tts -lindextts -lhtdemucs -lhiggs_stt -lgranite_speech -lgranite_nle -lglm-asr -lglint -lgigaam -lgemma4_e2b -lfunasr -lfireredtts3 -lfirered-vad -lfirered-lid -lfastpitch-tts -lf5-tts -lecapa-lid -ldots-tts -ldia-tts -lctc-align -lcsm-tts -lcrispasr_opusfile -lcrispasr_c2pa_native -lcrispasr-vad-encdec -lcrispasr-llama-core -lcrisp_truecase -lcrisp_punc -lcrisp_lid -lcrepe -lcosyvoice3_tts -lconfucius4-tts -lcohere -lcanary_qwen -lcanary_ctc -lcanary -lbtc-chords -lbeatrice-pitch -lbeat-this -lbasic-pitch -lbark-tts -lbananamind-tts -laudioseal -lark_asr -lcrispasr -Wl,--end-group -lm -lstdc++ -fopenmp
33+
#cgo darwin LDFLAGS: -lggml-base -lggml-cpu -lggml -lwav2vec2-ggml -lcrispasr-core -ltada-encoder -ltada-codec -lcrisp_audio -lsnac -lmoonshine_tokenizer -lmimo_tokenizer -lbert-encoder -lchatterbox -lfirered-asr -lopus -logg -lsidon -lzonos-tts -lwespeaker -lwebrtc-vad -lvoxtral_tts -lvoxtral4b -lvoxtral -lvoxcpm2_tts -lvibevoice -ltitanet -ltada-tts -ltabcnn -lt5_translate -lsupertonic-tts -lspeecht5-tts -lsilero-lid -lsensevoice -lrvc-svc -lqwen3_tts -lqwen3_asr -lpyannote-seg -lpocket-tts -lpiper-tts -lpiano-transcription -lparler-tts -lparakeet -lparaformer -loutetts -lorpheus -lopenvoice2 -lomnivoice -lomniasr -lnemotron -lmt3 -lmoss_tts_local -lmoss_tts -lmoss_transcribe_diarize -lmoss_transcribe -lmoss_audio -lmoonshine_streaming -lmoonshine -lmiotts -lmini-omni2 -lmimo_asr -lmelotts -lmel-band-roformer -lmarblenet-vad -lm2m100 -llfm2_audio -lkyutai-stt -lkugelaudio -lkokoro -lirodori-tts -lindextts -lhtdemucs -lhiggs_stt -lgranite_speech -lgranite_nle -lglm-asr -lglint -lgigaam -lgemma4_e2b -lfunasr -lfireredtts3 -lfirered-vad -lfirered-lid -lfastpitch-tts -lf5-tts -lecapa-lid -ldots-tts -ldia-tts -lctc-align -lcsm-tts -lcrispasr_opusfile -lcrispasr_c2pa_native -lcrispasr-vad-encdec -lcrispasr-llama-core -lcrisp_truecase -lcrisp_punc -lcrisp_lid -lcrepe -lcosyvoice3_tts -lconfucius4-tts -lcohere -lcanary_qwen -lcanary_ctc -lcanary -lbtc-chords -lbeatrice-pitch -lbeat-this -lbasic-pitch -lbark-tts -lbananamind-tts -laudioseal -lark_asr -lcrispasr -lm -lstdc++
3434
#cgo darwin LDFLAGS: -lggml-metal -lggml-blas
3535
#cgo darwin LDFLAGS: -framework Accelerate -framework Metal -framework Foundation -framework CoreGraphics
3636
#include <crispasr.h>

0 commit comments

Comments
 (0)