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

############################################################
#
# Linux
#
############################################################

#
# CCACHE
#
CCACHE:=$(shell test -n "`which ccache 2&>/dev/null`"; if [ $$? -eq 0 ] ; then echo "ccache" ; fi)

#
# RPATH the executable dir?
ifneq (1,$(DISABLE_EXECUTABLE_RPATH))
  _rpath_flags := -Wl,-rpath,'$$$$ORIGIN'
endif

#
# CXX / CMM FLAGS
#

_cxxflags_warnings := \
  -Wall -Wsign-compare -Wunused-parameter \
  -Wno-pragmas -Wno-unknown-pragmas -Wno-trigraphs

# -Wconversion

CXX := $(CCACHE) g++
CC := $(CXX) -x c

CFLAGSPRE := \
    -fmessage-length=0 -pipe \
    $(_cxxflags_warnings) \
    -Wall \
    -fPIC \
    -ftree-vectorize -msse3 -mssse3 \

CFLAGSPOST := -c

# DEBUG / RELEASE

ifeq ($(CONFIG),debug)
  CFLAGSPRE += -g -O0 -D_DEBUG -DDEBUG -falign-functions=4
else
  CFLAGSPRE += -g -O3 -DNDEBUG
endif

CXXFLAGSPRE := \
  $(CFLAGSPRE) -Wno-overloaded-virtual -std=c++11 -Wno-reorder \
  -DXP_LINUX=1 -DXP_UNIX=1 -DMOZILLA_STRICT_API
CXXFLAGSPOST := $(CFLAGSPOST) -fexceptions -fpermissive

PCHFLAGS := -x c++-header
<commit_msg>Add support for clang on linux builds Add support for enabling distcc on linux builds<commit_after># Copyright (c) 2012 Turbulenz Limited.
# Released under "Modified BSD License".  See COPYING for full text.

############################################################
#
# Linux
#
############################################################

#
# CCACHE
#
CCACHE:=$(shell test -n "`which ccache 2&>/dev/null`"; if [ $$? -eq 0 ] ; then echo "ccache" ; fi)

#
# DISTCC
#
ifeq (1,$(ENABLE_DISTCC))
DISTCC:=$(shell test -n "`which distcc 2&>/dev/null`"; if [ $$? -eq 0 ] ; then echo "distcc" ; fi)
endif

#
# RPATH the executable dir?
ifneq (1,$(DISABLE_EXECUTABLE_RPATH))
  _rpath_flags := -Wl,-rpath,'$$$$ORIGIN'
endif

#
# CXX / CMM FLAGS
#

_cxxflags_warnings := \
  -Wall -Wsign-compare -Wunused-parameter \
  -Wno-pragmas -Wno-unknown-pragmas -Wno-trigraphs

# -Wconversion

ifeq (clang, $(COMPILER))
CXXCOMPILER:=clang++
else
CXXCOMPILER:=g++
endif

CXX := $(CCACHE) $(DISTCC) $(CXXCOMPILER)
CC := $(CXX) -x c

CFLAGSPRE := \
    -fmessage-length=0 -pipe \
    $(_cxxflags_warnings) \
    -Wall \
    -fPIC \
    -ftree-vectorize -msse3 -mssse3

ifeq (clang, $(COMPILER))
CFLAGSPRE += -Qunused-arguments
endif

CFLAGSPOST := -c

# DEBUG / RELEASE

ifeq ($(CONFIG),debug)
  CFLAGSPRE += -g -O0 -D_DEBUG -DDEBUG
ifneq ($(COMPILER), clang)
  CFLAGSPRE += -falign-functions=4
endif
else
  CFLAGSPRE += -g -O3 -DNDEBUG
endif

CXXFLAGSPRE := \
  $(CFLAGSPRE) -Wno-overloaded-virtual -std=c++11 -Wno-reorder \
  -DXP_LINUX=1 -DXP_UNIX=1 -DMOZILLA_STRICT_API
CXXFLAGSPOST := $(CFLAGSPOST) -fexceptions -fpermissive

PCHFLAGS := -x c++-header

{'fraction_non_alphanumeric': 0.23395299894773763, 'fraction_numerical': 0.012977902490354262, 'mean_word_length': 3.8503401360544216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5170855', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1126, 'n_words': 250}