Use --std=c++11 flag when targeting iOS platform

PiperOrigin-RevId: 295966567
Change-Id: I6cfb19f70228d8fcb42504430eb2e28beec7c2e7
This commit is contained in:
YoungSeok Yoon 2020-02-19 07:46:08 -08:00 committed by TensorFlower Gardener
parent 911d4a618a
commit 876d602f57

View File

@ -68,6 +68,10 @@ ifeq ($(HOST_OS),windows)
CXXFLAGS += -fext-numeric-literals -D__LITTLE_ENDIAN__
endif
ifeq ($(TARGET),ios)
CXXFLAGS += --std=c++11
endif
# Auto-detect optimization opportunity if building natively.
ifeq ($(HOST_OS),$(TARGET))
ifeq ($(HOST_ARCH),$(TARGET_ARCH))