<commit_before># Copyright (c) 2012 Turbulenz Limited.
# Released under "Modified BSD License".  See COPYING for full text.

############################################################

ifneq (1,$(MACOSX_IGNORE_OLD_TOOLS))
  MACOSX_XCODE_BIN_PATH := $(wildcard /Developer/usr/bin/)
endif

ifneq (,$(MACOSX_XCODE_BIN_PATH))
  # OLD TOOLS
  MACOSX_CXX := llvm-g++-4.2
  CXXFLAGS += -ftree-vectorize
else
  # clang
  MACOSX_CXX := clang
  CXXFLAGS += -stdlib=libc++
  MACOSX_LDFLAGS += -lc++
endif

# Language to compile all .cpp files as
MACOSX_CXX_DEFAULTLANG ?= objective-c++

XCODE_SDK_VER ?= 10.6

# Create a variable holding the xcode configuration
ifeq ($(CONFIG),debug)
  XCODE_CONFIG := Debug
else
  XCODE_CONFIG := Release
endif

# Mark non-10.6 builds

ifneq ($(XCODE_SDK_VER),10.6)
  VARIANT:=$(strip $(VARIANT)-$(XCODE_SDK_VER))
endif

# Check the known SDK install locations

XCODE_SDK_ROOT:=/Developer/SDKs/MacOSX$(XCODE_SDK_VER).sdk
ifeq (,$(wildcard $(XCODE_SDK_ROOT)))
  XCODE_SDK_ROOT:=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform$(XCODE_SDK_ROOT)
endif

############################################################

$(call log,MACOSX BUILD CONFIGURATION)

#
# CXX / CMM FLAGS
#

CXX := $(MACOSX_XCODE_BIN_PATH)$(MACOSX_CXX)
CMM := $(CXX)

CXXFLAGSPRE := -x $(MACOSX_CXX_DEFAULTLANG) \
    -arch i386 -fmessage-length=0 -pipe -fno-exceptions \
    -fpascal-strings -fasm-blocks \
    -fstrict-aliasing -fno-threadsafe-statics \
    -ftree-vectorize -msse3 -mssse3 \
    -Wall -Wno-unknown-pragmas \
    -Wno-reorder -Wno-trigraphs -Wno-unused-parameter \
    -isysroot $(XCODE_SDK_ROOT) \
    -mmacosx-version-min=$(XCODE_SDK_VER) \
    -fvisibility-inlines-hidden \
    -fvisibility=hidden \
    -DXP_MACOSX=1 -DMACOSX

# -fno-rtti
# -fno-exceptions
# -fvisibility=hidden

CMMFLAGSPRE := -x objective-c++ \
    -arch i386 -fmessage-length=0 -pipe -fno-exceptions \
    -fpascal-strings -fasm-blocks \
    -fstrict-aliasing -fno-threadsafe-statics \
    -ftree-vectorize -msse3 -mssse3 \
    -Wall -Wno-unknown-pragmas \
    -Wno-reorder -Wno-trigraphs -Wno-unused-parameter \
    -Wno-undeclared-selector \
    -isysroot $(XCODE_SDK_ROOT) \
    -mmacosx-version-min=$(XCODE_SDK_VER) \
    -fvisibility-inlines-hidden \<commit_msg>Removed unused clang flag (fixes build warning)<commit_after># Copyright (c) 2012 Turbulenz Limited.
# Released under "Modified BSD License".  See COPYING for full text.

############################################################

ifneq (1,$(MACOSX_IGNORE_OLD_TOOLS))
  MACOSX_XCODE_BIN_PATH := $(wildcard /Developer/usr/bin/)
endif

ifneq (,$(MACOSX_XCODE_BIN_PATH))
  # OLD TOOLS
  MACOSX_CXX := llvm-g++-4.2
  CXXFLAGS += -ftree-vectorize
  CMMFLAGS += -ftree-vectorize
else
  # clang
  MACOSX_CXX := clang
  CXXFLAGS += -stdlib=libc++
  MACOSX_LDFLAGS += -lc++
endif

# Language to compile all .cpp files as
MACOSX_CXX_DEFAULTLANG ?= objective-c++

XCODE_SDK_VER ?= 10.6

# Create a variable holding the xcode configuration
ifeq ($(CONFIG),debug)
  XCODE_CONFIG := Debug
else
  XCODE_CONFIG := Release
endif

# Mark non-10.6 builds

ifneq ($(XCODE_SDK_VER),10.6)
  VARIANT:=$(strip $(VARIANT)-$(XCODE_SDK_VER))
endif

# Check the known SDK install locations

XCODE_SDK_ROOT:=/Developer/SDKs/MacOSX$(XCODE_SDK_VER).sdk
ifeq (,$(wildcard $(XCODE_SDK_ROOT)))
  XCODE_SDK_ROOT:=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform$(XCODE_SDK_ROOT)
endif

############################################################

$(call log,MACOSX BUILD CONFIGURATION)

#
# CXX / CMM FLAGS
#

CXX := $(MACOSX_XCODE_BIN_PATH)$(MACOSX_CXX)
CMM := $(CXX)

CXXFLAGSPRE := -x $(MACOSX_CXX_DEFAULTLANG) \
    -arch i386 -fmessage-length=0 -pipe -fno-exceptions \
    -fpascal-strings -fasm-blocks \
    -fstrict-aliasing -fno-threadsafe-statics \
    -msse3 -mssse3 \
    -Wall -Wno-unknown-pragmas \
    -Wno-reorder -Wno-trigraphs -Wno-unused-parameter \
    -isysroot $(XCODE_SDK_ROOT) \
    -mmacosx-version-min=$(XCODE_SDK_VER) \
    -fvisibility-inlines-hidden \
    -fvisibility=hidden \
    -DXP_MACOSX=1 -DMACOSX

# -fno-rtti
# -fno-exceptions
# -fvisibility=hidden

CMMFLAGSPRE := -x objective-c++ \
    -arch i386 -fmessage-length=0 -pipe -fno-exceptions \
    -fpascal-strings -fasm-blocks \
    -fstrict-aliasing -fno-threadsafe-statics \
    -msse3 -mssse3 \
    -Wall -Wno-unknown-pragmas \
    -Wno-reorder -Wno-trigraphs -Wno-unused-parameter \
    -Wno-undeclared-selector \
    -isysroot $(XCODE_SDK_ROOT) \
    -mmacosx-version-min=$(XCODE_SDK_VER) \
    -fvisibility-inlines-hidden \
{'fraction_non_alphanumeric': 0.1822950819672131, 'fraction_numerical': 0.0126775956284153, 'mean_word_length': 3.80672268907563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '722214', 'n_tokens_mistral': 1880, 'n_tokens_neox': 1753, 'n_words': 308}