Revision d559ddbbb751d25b80108198c82588fdc4223bd0 authored by seantalts on 20 April 2017, 18:29:48 UTC, committed by GitHub on 20 April 2017, 18:29:48 UTC
2 parent s 4c6c452 + 2715755
Raw File
os_mac
##
# This file should modify the following variables
# as appropriate:
#   - CFLAGS
#   - CFLAGS_GTEST

ifeq (g++,$(CC_TYPE))
  CFLAGS += -Wno-unused-function
  VERSION := $(CC_MAJOR).$(CC_MINOR)
  ifeq (4.2,$(CC_MAJOR).$(CC_MINOR))
    TEMPLATE_DEPTH ?= 256
    CFLAGS += -ftemplate-depth-$(TEMPLATE_DEPTH)
  endif
endif

ifeq (clang++,$(CC_TYPE))
  CFLAGS_GTEST += -Wc++11-extensions
  CFLAGS_GTEST += -Wno-c++11-long-long
  CFLAGS += -Wno-unknown-warning-option
  CFLAGS += -Wno-unused-function
  CFLAGS += -Wno-tautological-compare
  CFLAGS += -Wno-c++11-long-long
  CFLAGS += -Wsign-compare
  CFLAGS += -Wno-unused-local-typedef
  ifeq (true,$(C++11))
    CFLAGS += -stdlib=libc++ -std=c++11
  endif
  #PCH = .pch
  ifeq (4.2,$(CC_MAJOR).$(CC_MINOR))
    TEMPLATE_DEPTH ?= 256
    CFLAGS += -ftemplate-depth=$(TEMPLATE_DEPTH)
  endif
endif
back to top