Skip to content

Commit 6a21bb4

Browse files
authored
[build] fix "unknown compiler g++" for apple clang >= 11.0 (kaldi-asr#3975)
1 parent 0780890 commit 6a21bb4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/compute-gop.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ int main(int argc, char *argv[]) {
158158
if (!alignment_reader.HasKey(key)) {
159159
KALDI_WARN << "No alignment for utterance " << key;
160160
continue;
161-
}
161+
}
162162
auto alignment = alignment_reader.Value(key);
163163
Matrix<BaseFloat> &probs = prob_reader.Value();
164164
if (log_applied) probs.ApplyExp();

tools/extras/check_dependencies.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ case $compiler_ver_info in
4444
status=1
4545
fi
4646
;;
47-
"clang "* )
47+
"clang "* | "Apple clang "* )
4848
clang_ver=$(echo $compiler_ver_info | grep version | sed "s/.*version \([0-9\.]*\).*/\1/")
4949
clang_ver_num=$(echo $clang_ver | sed 's/\./ /g' | xargs printf "%d%02d")
5050
if [ $clang_ver_num -lt 303 ]; then

0 commit comments

Comments
 (0)