<commit_before>cmake_minimum_required(VERSION 2.6)

find_program(LLVM_CONFIG_EXECUTABLE NAMES llvm-config PATHS ../../Debug+Asserts/bin/ NO_DEFAULT_PATH)
find_program(LLVM_CONFIG_EXECUTABLE llvm-config)

if(NOT LLVM_CONFIG_EXECUTABLE)
  message(FATAL_ERROR "LLVM was not found!")
endif(NOT LLVM_CONFIG_EXECUTABLE)

exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --libs engine target linker bitreader bitwriter codegen mc mcdisassembler x86 OUTPUT_VARIABLE LLVM_LIBS)
exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --ldflags OUTPUT_VARIABLE LLVM_LDFLAGS)
exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --includedir OUTPUT_VARIABLE LLVM_INCLUDE_DIR)
exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --cflags OUTPUT_VARIABLE LLVM_C_FLAGS)
exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --cxxflags OUTPUT_VARIABLE LLVM_CXX_FLAGS)
set(CLANG_LIBS "-L../../Debug+Asserts/lib -lclangFrontend -lclangAST -lclangLex -lclangCodeGen -lclangSema -lclangParse -lclangAST -lclangBasic -lclangAnalysis -lclangEdit")

Project(ccons)

set(CCONS_SRCS ccons.cpp Diagnostics.cpp ClangUtils.cpp Console.cpp Parser.cpp SrcGen.cpp StringUtils.cpp EditLineReader.cpp InternalCommands.cpp LineReader.cpp RemoteConsole.cpp Visitors.cpp complete.c popen2.c)
if(CMAKE_GENERATOR STREQUAL "Xcode")
    set(CCONS_HDRS ClangUtils.h InternalCommands.h SrcGen.h popen2.h Console.h LineReader.h StringUtils.h Diagnostics.h Parser.h Visitors.h EditLineReader.h RemoteConsole.h complete.h)<commit_msg>extract LLVM_BUILD_TYPE into a variable<commit_after>cmake_minimum_required(VERSION 2.6)

set(LLVM_BUILD_TYPE "Debug+Asserts")

find_program(LLVM_CONFIG_EXECUTABLE NAMES llvm-config PATHS ../../${LLVM_BUILD_TYPE}/ NO_DEFAULT_PATH)
find_program(LLVM_CONFIG_EXECUTABLE llvm-config)

if(NOT LLVM_CONFIG_EXECUTABLE)
  message(FATAL_ERROR "LLVM was not found!")
endif(NOT LLVM_CONFIG_EXECUTABLE)

exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --libs engine target linker bitreader bitwriter codegen mc mcdisassembler x86 OUTPUT_VARIABLE LLVM_LIBS)
exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --ldflags OUTPUT_VARIABLE LLVM_LDFLAGS)
exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --includedir OUTPUT_VARIABLE LLVM_INCLUDE_DIR)
exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --cflags OUTPUT_VARIABLE LLVM_C_FLAGS)
exec_program(${LLVM_CONFIG_EXECUTABLE} ARGS --cxxflags OUTPUT_VARIABLE LLVM_CXX_FLAGS)
set(CLANG_LIBS "-L../../${LLVM_BUILD_TYPE}/lib -lclangFrontend -lclangAST -lclangLex -lclangCodeGen -lclangSema -lclangParse -lclangAST -lclangBasic -lclangAnalysis -lclangEdit")

Project(ccons)

set(CCONS_SRCS ccons.cpp Diagnostics.cpp ClangUtils.cpp Console.cpp Parser.cpp SrcGen.cpp StringUtils.cpp EditLineReader.cpp InternalCommands.cpp LineReader.cpp RemoteConsole.cpp Visitors.cpp complete.c popen2.c)
if(CMAKE_GENERATOR STREQUAL "Xcode")
    set(CCONS_HDRS ClangUtils.h InternalCommands.h SrcGen.h popen2.h Console.h LineReader.h StringUtils.h Diagnostics.h Parser.h Visitors.h EditLineReader.h RemoteConsole.h complete.h)
{'fraction_non_alphanumeric': 0.08710330857528698, 'fraction_numerical': 0.004051316677920324, 'mean_word_length': 7.346478873239437, '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': '4959475', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1086, 'n_words': 201}