<commit_before>JULIAHOME = $(subst \,/,$(JULIA_HOME))/../..
include $(JULIAHOME)/deps/Versions.make
include $(JULIAHOME)/Make.inc

FLAGS = -std=c++11 $(CPPFLAGS) $(CFLAGS) -I$(build_includedir) \
		-I$(JULIAHOME)/src/support \
		-I$(call exec,$(LLVM_CONFIG) --includedir) \
		-I$(JULIAHOME)/deps/llvm-$(LLVM_VER)/tools/clang/lib

JULIA_LDFLAGS = -L$(build_shlibdir) -L$(build_libdir)

CLANG_LIBS = -lclangFrontendTool -lclangBasic -lclangLex -lclangDriver -lclangFrontend -lclangParse \
    -lclangAST -lclangASTMatchers -lclangSema -lclangAnalysis -lclangEdit \
    -lclangRewriteFrontend -lclangRewrite -lclangSerialization -lclangStaticAnalyzerCheckers \
    -lclangStaticAnalyzerCore -lclangStaticAnalyzerFrontend -lclangTooling -lclangToolingCore \
    -lclangCodeGen -lclangARCMigrate

LLDB_LIBS = -llldbBreakpoint -llldbCommands -llldbCore -llldbInitialization \
    -llldbDataFormatters -llldbExpression -llldbHost  \
    -llldbBase -llldbInterpreter  \
    -llldbPluginABISysV_x86_64 -llldbPluginABISysV_i386 -llldbPluginABISysV_ppc -llldbPluginABISysV_ppc64 -llldbPluginDisassemblerLLVM \
    -llldbPluginABISysV_arm -llldbPluginABISysV_arm64 -llldbPluginABISysV_mips -llldbPluginABISysV_mips64 \
    -llldbPluginDynamicLoaderPosixDYLD -llldbPluginDynamicLoaderStatic -llldbPluginInstructionARM \
    -llldbPluginDynamicLoaderMacOSXDYLD \
    -llldbPluginInstructionMIPS64 -llldbPluginInstructionMIPS \
    -llldbPluginInstructionARM64 -llldbPluginJITLoaderGDB -llldbPluginCXXItaniumABI \
    -llldbPluginObjectFileELF -llldbPluginObjectFileJIT -llldbPluginObjectContainerBSDArchive \
    -llldbPluginObjectContainerMachOArchive \
    -llldbPluginObjectFilePECOFF -llldbPluginOSPython \
    -llldbPluginPlatformFreeBSD -llldbPluginPlatformGDB -llldbPluginPlatformLinux \
    -llldbPluginPlatformPOSIX -llldbPluginPlatformWindows -llldbPluginPlatformKalimba \
    -llldbPluginPlatformMacOSX  -llldbPluginAppleObjCRuntime \
    -llldbPluginProcessElfCore -llldbPluginProcessGDBRemote -llldbPluginMemoryHistoryASan \
    -llldbPluginSymbolFileDWARF -llldbPluginSymbolFileSymtab -llldbPluginSymbolVendorELF -llldbSymbol -llldbUtility \
    -llldbPluginSystemRuntimeMacOSX \
    -llldbPluginUnwindAssemblyInstEmulation -llldbPluginUnwindAssemblyX86 -llldbTarget \
    -llldbPluginInstrumentationRuntimeAddressSanitizer -llldbPluginPlatformAndroid \
    -llldbPluginRenderScriptRuntime \
    $(call exec,$(LLVM_CONFIG) --system-libs)
LLDB_LIBS += -llldbPluginABIMacOSX_arm -llldbPluginABIMacOSX_arm64 -llldbPluginABIMacOSX_i386
ifeq ($(OS), Darwin)
LLDB_LIBS += -F/System/Library/Frameworks -F/System/Library/PrivateFrameworks -framework DebugSymbols
	-llldbPluginPlatformAndroid \
    -llldbPluginDynamicLoaderDarwinKernel \
    -llldbPluginProcessDarwin  -llldbPluginProcessMachCore \
    -llldbPluginSymbolVendorMacOSX  -llldbPluginObjectFileMachO \
    -framework Security -lpanel -framework CoreFoundation \
    -framework Foundation -framework Carbon -lobjc -ledit -lxml2
endif
ifeq ($(EXPERIMENTAL_LLDB),1)
LLDB_LIBS +=  -llldbPluginABIMips32 -llldbPluginUnwindAssemblyMips
endif
ifeq ($(OS), WINNT)
LLDB_LIBS += -llldbPluginProcessWindows -lWs2_32
endif
ifeq ($(OS), Linux)
LLDB_LIBS += -llldbPluginProcessLinux -llldbPluginProcessPOSIX -lz -lbsd -ledit
endif


ifeq ($(USE_LLVM_SHLIB),1)
ifeq ($(LLVM_USE_NINJA),1)
LDFLAGS += -lLLVM
else
LDFLAGS += -lLLVM-$(call exec,$(LLVM_CONFIG) --version)
endif
endif


all: usr/lib/libcxxffi.$(SHLIB_EXT) usr/lib/libcxxffi-debug.$(SHLIB_EXT)

usr/lib:
	@mkdir -p $(CURDIR)/usr/lib/

build:
	@mkdir -p $(CURDIR)/build

build/bootstrap.o: ../src/bootstrap.cpp BuildBootstrap.Makefile | build
	@$(call PRINT_CC, $(CXX) -fno-rtti -DLIBRARY_EXPORTS -fPIC -O0 -g $(FLAGS) -c ../src/bootstrap.cpp -o $@)<commit_msg>LLVM_USE_NINJA -> LLVM_USE_CMAKE<commit_after>JULIAHOME = $(subst \,/,$(JULIA_HOME))/../..
include $(JULIAHOME)/deps/Versions.make
include $(JULIAHOME)/Make.inc

FLAGS = -std=c++11 $(CPPFLAGS) $(CFLAGS) -I$(build_includedir) \
		-I$(JULIAHOME)/src/support \
		-I$(call exec,$(LLVM_CONFIG) --includedir) \
		-I$(JULIAHOME)/deps/llvm-$(LLVM_VER)/tools/clang/lib

JULIA_LDFLAGS = -L$(build_shlibdir) -L$(build_libdir)

CLANG_LIBS = -lclangFrontendTool -lclangBasic -lclangLex -lclangDriver -lclangFrontend -lclangParse \
    -lclangAST -lclangASTMatchers -lclangSema -lclangAnalysis -lclangEdit \
    -lclangRewriteFrontend -lclangRewrite -lclangSerialization -lclangStaticAnalyzerCheckers \
    -lclangStaticAnalyzerCore -lclangStaticAnalyzerFrontend -lclangTooling -lclangToolingCore \
    -lclangCodeGen -lclangARCMigrate

LLDB_LIBS = -llldbBreakpoint -llldbCommands -llldbCore -llldbInitialization \
    -llldbDataFormatters -llldbExpression -llldbHost  \
    -llldbBase -llldbInterpreter  \
    -llldbPluginABISysV_x86_64 -llldbPluginABISysV_i386 -llldbPluginABISysV_ppc -llldbPluginABISysV_ppc64 -llldbPluginDisassemblerLLVM \
    -llldbPluginABISysV_arm -llldbPluginABISysV_arm64 -llldbPluginABISysV_mips -llldbPluginABISysV_mips64 \
    -llldbPluginDynamicLoaderPosixDYLD -llldbPluginDynamicLoaderStatic -llldbPluginInstructionARM \
    -llldbPluginDynamicLoaderMacOSXDYLD \
    -llldbPluginInstructionMIPS64 -llldbPluginInstructionMIPS \
    -llldbPluginInstructionARM64 -llldbPluginJITLoaderGDB -llldbPluginCXXItaniumABI \
    -llldbPluginObjectFileELF -llldbPluginObjectFileJIT -llldbPluginObjectContainerBSDArchive \
    -llldbPluginObjectContainerMachOArchive \
    -llldbPluginObjectFilePECOFF -llldbPluginOSPython \
    -llldbPluginPlatformFreeBSD -llldbPluginPlatformGDB -llldbPluginPlatformLinux \
    -llldbPluginPlatformPOSIX -llldbPluginPlatformWindows -llldbPluginPlatformKalimba \
    -llldbPluginPlatformMacOSX  -llldbPluginAppleObjCRuntime \
    -llldbPluginProcessElfCore -llldbPluginProcessGDBRemote -llldbPluginMemoryHistoryASan \
    -llldbPluginSymbolFileDWARF -llldbPluginSymbolFileSymtab -llldbPluginSymbolVendorELF -llldbSymbol -llldbUtility \
    -llldbPluginSystemRuntimeMacOSX \
    -llldbPluginUnwindAssemblyInstEmulation -llldbPluginUnwindAssemblyX86 -llldbTarget \
    -llldbPluginInstrumentationRuntimeAddressSanitizer -llldbPluginPlatformAndroid \
    -llldbPluginRenderScriptRuntime \
    $(call exec,$(LLVM_CONFIG) --system-libs)
LLDB_LIBS += -llldbPluginABIMacOSX_arm -llldbPluginABIMacOSX_arm64 -llldbPluginABIMacOSX_i386
ifeq ($(OS), Darwin)
LLDB_LIBS += -F/System/Library/Frameworks -F/System/Library/PrivateFrameworks -framework DebugSymbols
	-llldbPluginPlatformAndroid \
    -llldbPluginDynamicLoaderDarwinKernel \
    -llldbPluginProcessDarwin  -llldbPluginProcessMachCore \
    -llldbPluginSymbolVendorMacOSX  -llldbPluginObjectFileMachO \
    -framework Security -lpanel -framework CoreFoundation \
    -framework Foundation -framework Carbon -lobjc -ledit -lxml2
endif
ifeq ($(EXPERIMENTAL_LLDB),1)
LLDB_LIBS +=  -llldbPluginABIMips32 -llldbPluginUnwindAssemblyMips
endif
ifeq ($(OS), WINNT)
LLDB_LIBS += -llldbPluginProcessWindows -lWs2_32
endif
ifeq ($(OS), Linux)
LLDB_LIBS += -llldbPluginProcessLinux -llldbPluginProcessPOSIX -lz -lbsd -ledit
endif


ifeq ($(USE_LLVM_SHLIB),1)
ifeq ($(LLVM_USE_CMAKE),1)
LDFLAGS += -lLLVM
else
LDFLAGS += -lLLVM-$(call exec,$(LLVM_CONFIG) --version)
endif
endif


all: usr/lib/libcxxffi.$(SHLIB_EXT) usr/lib/libcxxffi-debug.$(SHLIB_EXT)

usr/lib:
	@mkdir -p $(CURDIR)/usr/lib/

build:
	@mkdir -p $(CURDIR)/build

build/bootstrap.o: ../src/bootstrap.cpp BuildBootstrap.Makefile | build
	@$(call PRINT_CC, $(CXX) -fno-rtti -DLIBRARY_EXPORTS -fPIC -O0 -g $(FLAGS) -c ../src/bootstrap.cpp -o $@)
{'fraction_non_alphanumeric': 0.09842154131847725, 'fraction_numerical': 0.00955033824114604, 'mean_word_length': 5.190476190476191, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1526238', 'n_tokens_mistral': 2973, 'n_tokens_neox': 2861, 'n_words': 393}