swh:1:snp:d80eec3f654c152adbdd6e641362bcb340d39fe2
Raw File
Tip revision: 5250745e61c931893c6afeba407ab2a92a5f5c10 authored by Daniel Lee on 05 February 2015, 17:34:34 UTC
Merge pull request #1273 from stan-dev/release/v2.6.0
Tip revision: 5250745
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-unused-function
  CFLAGS += -Wno-tautological-compare
  CFLAGS += -Wno-c++11-long-long
  CFLAGS += -Wsign-compare
  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