message: Updated iOS build process to handle threading correctly, requires iOS 9.0 or later.
diff: @@ -316,14 +316,14 @@ ifeq ($(TARGET),IOS)
  IPHONESIMULATOR_SYSROOT := $(shell xcrun --sdk iphonesimulator \
  --show-sdk-path)
  IOS_SDK_VERSION := $(shell xcrun --sdk iphoneos --show-sdk-version)
  - MIN_SDK_VERSION := 8.0
  + MIN_SDK_VERSION := 9.0
  # Override IOS_ARCH with ARMV7, ARMV7S, ARM64, or I386.
  IOS_ARCH := X86_64
  ifeq ($(IOS_ARCH),ARMV7)
  CXXFLAGS += -miphoneos-version-min=$(MIN_SDK_VERSION) \
  -arch armv7 \
  -fembed-bitcode \
  - -D__thread= \
  + -D__thread=thread_local \
  -DUSE_GEMM_FOR_CONV \
  -Wno-c++11-narrowing \
  -mno-thumb \
  @@ -347,7 +347,7 @@ ifeq ($(TARGET),IOS)
  CXXFLAGS += -miphoneos-version-min=$(MIN_SDK_VERSION) \
  -arch armv7s \
  -fembed-bitcode \
  - -D__thread= \
  + -D__thread=thread_local \
  -DUSE_GEMM_FOR_CONV \
  -Wno-c++11-narrowing \
  -mno-thumb \
  @@ -371,7 +371,7 @@ ifeq ($(TARGET),IOS)
  CXXFLAGS += -miphoneos-version-min=$(MIN_SDK_VERSION) \
  -arch arm64 \
  -fembed-bitcode \
  - -D__thread= \
  + -D__thread=thread_local \
  -DUSE_GEMM_FOR_CONV \
  -Wno-c++11-narrowing \
  -DTF_LEAN_BINARY \
  @@ -395,7 +395,7 @@ ifeq ($(TARGET),IOS)
  -arch i386 \
  -mno-sse \
  -fembed-bitcode \
  - -D__thread= \
  + -D__thread=thread_local \
  -DUSE_GEMM_FOR_CONV \
  -Wno-c++11-narrowing \
  -DTF_LEAN_BINARY \
  @@ -418,7 +418,7 @@ ifeq ($(TARGET),IOS)
  CXXFLAGS += -mios-simulator-version-min=$(MIN_SDK_VERSION) \
  -arch x86_64 \
  -fembed-bitcode \
  - -D__thread= \
  + -D__thread=thread_local \
  -DUSE_GEMM_FOR_CONV \
  -Wno-c++11-narrowing \
  -DTF_LEAN_BINARY \
  