Skip to content

Commit dca8eaf

Browse files
authored
Revert "Sync pybind11 with master (#3832)" (#3841)
This reverts commit 51a2732.
1 parent 51a2732 commit dca8eaf

File tree

5 files changed

+3
-231
lines changed

5 files changed

+3
-231
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ addons:
2929
branches:
3030
only:
3131
- master
32-
- pybind11
3332

3433
before_install:
3534
- cat /proc/sys/kernel/core_pattern

egs/wsj/s5/utils/data/get_allowed_durations.py

Lines changed: 0 additions & 219 deletions
This file was deleted.

src/bin/compute-gop.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,6 @@ int main(int argc, char *argv[]) {
155155
int32 num_done = 0;
156156
for (; !prob_reader.Done(); prob_reader.Next()) {
157157
std::string key = prob_reader.Key();
158-
if (!alignment_reader.HasKey(key)) {
159-
KALDI_WARN << "No alignment for utterance " << key;
160-
continue;
161-
}
162158
auto alignment = alignment_reader.Value(key);
163159
Matrix<BaseFloat> &probs = prob_reader.Value();
164160
if (log_applied) probs.ApplyExp();

src/pybind/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@ LIBFILE_EXTENSION := $(PYBIND_EXTENSION)
2626

2727
# pybind11 is heavily templated and generates code that is bloated before optimization.
2828
# -flto is link time optimization which apparently is important.
29-
ifndef CI_TARGETS
30-
LTOFLAG = -flto
31-
endif
32-
33-
CXXFLAGS += -O3 $(LTOFLAG) -I.
34-
LDFLAGS += $(LTOFLAG)
29+
CXXFLAGS += -O3 -flto -I.
30+
LDFLAGS += -flto
3531

3632
ifeq ($(shell uname),Darwin)
3733
LDFLAGS += -undefined dynamic_lookup

tools/extras/travis_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ CCC=$(mtoken CXX "$CXX")
6868
echo "Building tools..." [Time: $(date)]
6969
runvx cd tools
7070
runvx make -j$MAXPAR openfst "$CCC" CXXFLAGS="$CF" \
71-
OPENFST_CONFIGURE="--disable-static --enable-shared --disable-dependency-tracking"
71+
OPENFST_CONFIGURE="--disable-static --enable-shared --disable-bin --disable-dependency-tracking"
7272
runvx make -j$MAXPAR cub "$CCC" CXXFLAGS="$CF"
7373
cd ..
7474

0 commit comments

Comments
 (0)