<commit_before>#!/bin/bash
# TODO: Test config for OSX
# TODO: Determine appropriate architecture (i.g. "args+=(arch=nocona)")

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ "$1" = "clean" ]; then
  (cd $DIR && scons -c --config=force $lib_setup_args)
elif [ "$1" = "build" ]; then
  declare -a args=()
  SYSTEM_NAME=`uname -s`
  if [ "$SYSTEM_NAME" = "Darwin" ]; then
    # OSX specific config:
    # These were previously needed, but maybe aren't any more?:
    # args+=(cxxflags_extra='-std=c++11 -stdlib=libc++' linkflags_extra='-stdlib=libc++')
    # args+=(sse=0)
    args+=(cxxflags_extra='-msse4.1')
    args+=(use_openmesh=1 openmesh_libpath=#/../OpenMesh-2.0/build/Build/lib/OpenMesh openmesh_publiclibs='OpenMeshCore,OpenMeshTools' openmesh_include=#/../OpenMesh-2.0/src)
    echo "" # Can't have an empty if block
  elif echo "$SYSTEM_NAME" | grep -q "MINGW64_NT"; then
    # Windows specific config:
    args+=(libs_extra=psapi)
    args+=(use_openmesh=1 openmesh_libpath=#/../OpenMesh-2.0/build/Build/lib openmesh_publiclibs='OpenMeshCore,OpenMeshTools' openmesh_include=#/../OpenMesh-2.0/src)
  elif echo "$SYSTEM_NAME" | grep -q "MSYS"; then
    echo "ERROR: the MSYS shell is not supported. Please use the MinGW-w64 Win64 Shell instead."<commit_msg>metabuild: Lock -march to corei7, and turn off -Werror (for now)<commit_after>#!/bin/bash
# TODO: Test config for OSX
# TODO: Determine appropriate architecture (i.g. "args+=(arch=nocona)")

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ "$1" = "clean" ]; then
  (cd $DIR && scons -c --config=force $lib_setup_args)
elif [ "$1" = "build" ]; then
  declare -a args=()
  SYSTEM_NAME=`uname -s`
  if [ "$SYSTEM_NAME" = "Darwin" ]; then
    # OSX specific config:
    # These were previously needed, but maybe aren't any more?:
    # args+=(cxxflags_extra='-std=c++11 -stdlib=libc++' linkflags_extra='-stdlib=libc++')
    # args+=(sse=0)
    args+=(cxxflags_extra='-msse4.1')
    args+=(use_openmesh=1 openmesh_libpath=#/../OpenMesh-2.0/build/Build/lib/OpenMesh openmesh_publiclibs='OpenMeshCore,OpenMeshTools' openmesh_include=#/../OpenMesh-2.0/src)
    echo "" # Can't have an empty if block
  elif echo "$SYSTEM_NAME" | grep -q "MINGW64_NT"; then
    # Windows specific config:
    args+=(libs_extra=psapi)
    args+=(use_openmesh=1 Werror=0 arch=corei7 openmesh_libpath=#/../OpenMesh-2.0/build/Build/lib openmesh_publiclibs='OpenMeshCore,OpenMeshTools' openmesh_include=#/../OpenMesh-2.0/src)
  elif echo "$SYSTEM_NAME" | grep -q "MSYS"; then
    echo "ERROR: the MSYS shell is not supported. Please use the MinGW-w64 Win64 Shell instead."
{'fraction_non_alphanumeric': 0.17186311787072242, 'fraction_numerical': 0.019391634980988594, 'mean_word_length': 4.358452138492872, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5150081', 'n_tokens_mistral': 1004, 'n_tokens_neox': 946, 'n_words': 221}