Procházet zdrojové kódy

depends: add sensible download timeout/retry values

tags/v0.15.1
Cory Fields před 6 roky
rodič
revize
df7565d99c
3 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 2
    0
      depends/Makefile
  2. 1
    1
      depends/builders/darwin.mk
  3. 1
    1
      depends/builders/linux.mk

+ 2
- 0
depends/Makefile Zobrazit soubor

@@ -13,6 +13,8 @@ HOST ?= $(BUILD)
PATCHES_PATH = $(BASEDIR)/patches
BASEDIR = $(CURDIR)
HASH_LENGTH:=11
DOWNLOAD_CONNECT_TIMEOUT:=10
DOWNLOAD_RETRIES:=3

host:=$(BUILD)
ifneq ($(HOST),)

+ 1
- 1
depends/builders/darwin.mk Zobrazit soubor

@@ -7,7 +7,7 @@ build_darwin_OTOOL: = $(shell xcrun -f otool)
build_darwin_NM: = $(shell xcrun -f nm)
build_darwin_INSTALL_NAME_TOOL:=$(shell xcrun -f install_name_tool)
build_darwin_SHA256SUM = shasum -a 256
build_darwin_DOWNLOAD = curl -L -o
build_darwin_DOWNLOAD = curl --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -L -o

#darwin host on darwin builder. overrides darwin host preferences.
darwin_CC=$(shell xcrun -f clang) -mmacosx-version-min=$(OSX_MIN_VERSION)

+ 1
- 1
depends/builders/linux.mk Zobrazit soubor

@@ -1,2 +1,2 @@
build_linux_SHA256SUM = sha256sum
build_linux_DOWNLOAD = wget -nv -O
build_linux_DOWNLOAD = wget --timeout=$(DOWNLOAD_CONNECT_TIMEOUT) --tries=$(DOWNLOAD_RETRIES) -nv -O

Načítá se…
Zrušit
Uložit