-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4924 from jtrmal/python_and_apple
Fix reported issues w.r.t python2.7 and some apple silicone quirks
- Loading branch information
Showing
13 changed files
with
166 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Darwin (macOS) configuration | ||
|
||
ifndef DOUBLE_PRECISION | ||
$(error DOUBLE_PRECISION not defined.) | ||
endif | ||
ifndef OPENFSTINC | ||
$(error OPENFSTINC not defined.) | ||
endif | ||
ifndef OPENFSTLIBS | ||
$(error OPENFSTLIBS not defined.) | ||
endif | ||
|
||
CXXFLAGS = -std=c++14 -I.. -I$(OPENFSTINC) -O1 $(EXTRA_CXXFLAGS) \ | ||
-Wall -Wno-sign-compare -Wno-unused-local-typedefs \ | ||
-Wno-deprecated-declarations -Winit-self \ | ||
-DKALDI_DOUBLEPRECISION=$(DOUBLE_PRECISION) \ | ||
-DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_CLAPACK \ | ||
-pthread \ | ||
-g # -O0 -DKALDI_PARANOID | ||
|
||
ifeq ($(KALDI_FLAVOR), dynamic) | ||
CXXFLAGS += -fPIC | ||
endif | ||
|
||
# Compiler specific flags | ||
COMPILER = $(shell $(CXX) -v 2>&1) | ||
ifeq ($(findstring clang,$(COMPILER)),clang) | ||
# Suppress annoying clang warnings that are perfectly valid per spec. | ||
CXXFLAGS += -Wno-mismatched-tags | ||
else ifeq ($(findstring GCC,$(COMPILER)),GCC) | ||
# Allow implicit conversions between vectors. | ||
CXXFLAGS += -flax-vector-conversions | ||
endif | ||
|
||
LDFLAGS = $(EXTRA_LDFLAGS) $(OPENFSTLDFLAGS) -g | ||
LDLIBS = $(EXTRA_LDLIBS) $(OPENFSTLIBS) -framework Accelerate -lm -lpthread -ldl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.