Skip to content

Commit 2c45498

Browse files
Pavel SeleznevPavel Seleznev
Pavel Seleznev
authored and
Pavel Seleznev
committed
fixed flaky build: in parallel mode the creation link operation can be happen in two threads
1 parent b8a3d0b commit 2c45498

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ test-c++file: test.c zxcvbn-c++file.o
7979
$(CXX) $(CPPFLAGS) $(CXXFLAGS) \
8080
-DUSE_DICT_FILE -o test-c++file test.cpp zxcvbn-c++file.o $(LDFLAGS) -lm
8181

82-
zxcvbn-c++file.o: zxcvbn.c dict-crc.h zxcvbn.h
83-
if [ ! -e zxcvbn.cpp ]; then ln -s zxcvbn.c zxcvbn.cpp; fi
82+
zxcvbn-c++file.o: zxcvbn.c dict-crc.h zxcvbn.h zxcvbn-c++inline.o
8483
$(CXX) $(CPPFLAGS) $(CXXFLAGS) \
8584
-DUSE_DICT_FILE -c -o zxcvbn-c++file.o zxcvbn.cpp
8685

@@ -102,7 +101,7 @@ test: test-internals test-file test-inline test-c++inline test-c++file test-shli
102101
@echo Finished
103102

104103
clean:
105-
rm -f test-file zxcvbn-file.o test-c++file zxcvbn-c++file.o
104+
rm -f test-file zxcvbn-file.o test-c++file zxcvbn-c++file.o
106105
rm -f test-inline test-internals zxcvbn-inline.o zxcvbn-inline-pic.o test-c++inline zxcvbn-c++inline.o
107106
rm -f dict-*.h zxcvbn.dict zxcvbn.cpp test.cpp
108107
rm -f dictgen

0 commit comments

Comments
 (0)