<commit_before>cmake_minimum_required(VERSION 2.6)

project(Tundra)

include_directories(src lua/src)

if (WIN32)
  if (MSVC)
    set(CMAKE_C_FLAGS "/EHsc")

    # Warning options--warning level 4 and warnings as errors
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4 /WX")
    
    # disable warning 4127: Conditional expression is constant
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4127")

    # disable warning 4505: unreferenced local function has been removed
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4505")

    # disable warning 4275: non dll-interface class 'Foo' used as base for dll-interface class 'Bar'
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4275")

    # disable warning 4100: unreferenced formal parameter
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4100")

    # disable warning 4251: class 'Bar' needs to have dll-interface to be used by clients of struct 'Foo'
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4251")
    
    # disable warning 4324: 'Foo' : structure was padded due to __declspec(align()) 
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4324")
    
    # disable warning 4718: 'Foo' : recursive call has no side effects, deleting
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4718")
    
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /we4062 /we4263 /we4431")
  endif (MSVC)
    # Stick debug into in the object files rather in the PDB file while
    # compiling. Enables parallel builds and prevents msbdpsrv.exe from
    # crashing all the time with msvc 9.<commit_msg>Added some build flags for Mingw<commit_after>cmake_minimum_required(VERSION 2.6)

project(Tundra)

include_directories(src lua/src)

if (WIN32)
  if (MSVC)
    set(CMAKE_C_FLAGS "/EHsc")

    # Warning options--warning level 4 and warnings as errors
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4 /WX")
    
    # disable warning 4127: Conditional expression is constant
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4127")

    # disable warning 4505: unreferenced local function has been removed
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4505")

    # disable warning 4275: non dll-interface class 'Foo' used as base for dll-interface class 'Bar'
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4275")

    # disable warning 4100: unreferenced formal parameter
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4100")

    # disable warning 4251: class 'Bar' needs to have dll-interface to be used by clients of struct 'Foo'
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4251")
    
    # disable warning 4324: 'Foo' : structure was padded due to __declspec(align()) 
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4324")
    
    # disable warning 4718: 'Foo' : recursive call has no side effects, deleting
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4718")
    
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /we4062 /we4263 /we4431")
  endif (MSVC)
  if (MINGW)
    add_definitions(-D__USE_MINGW_ANSI_STDIO)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Werror -Wno-error=strict-aliasing")
  endif (MINGW)
    # Stick debug into in the object files rather in the PDB file while
    # compiling. Enables parallel builds and prevents msbdpsrv.exe from
    # crashing all the time with msvc 9.
{'fraction_non_alphanumeric': 0.0967741935483871, 'fraction_numerical': 0.0480708412397217, 'mean_word_length': 3.8962848297213624, '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': '566169', 'n_tokens_mistral': 1269, 'n_tokens_neox': 1091, 'n_words': 321}