<commit_before># -----------------------------------------------------------------------------
#
# (c) 2009 The University of Glasgow
#
# This file is part of the GHC build system.
#
# To understand how the build system works and how to modify it, see
#      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
#      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
#
# -----------------------------------------------------------------------------

# -----------------------------------------------------------------------------
# For expressing extra dependencies on source files

define compiler-hs-dependency # args: $1 = module, $2 = dependency

$$(foreach stage,1 2 3,\
 $$(foreach way,$$(compiler_stage$$(stage)_WAYS),\
  compiler/stage$$(stage)/build/$1.$$($$(way)_osuf))) : $2

endef

# -----------------------------------------------------------------------------
# Create compiler configuration
#
# The 'echo' commands simply spit the values of various make variables
# into Config.hs, whence they can be compiled and used by GHC itself

compiler_CONFIG_HS = compiler/main/Config.hs

ifneq "$(BINDIST)" "YES"
compiler/stage1/package-data.mk : $(compiler_CONFIG_HS)
compiler/stage2/package-data.mk : $(compiler_CONFIG_HS)
compiler/stage3/package-data.mk : $(compiler_CONFIG_HS)
endif

$(compiler_CONFIG_HS) : mk/config.mk mk/project.mk
	"$(RM)" $(RM_OPTS) $@
	@echo "Creating $@ ... "
	@echo "module Config where" >>$@
	@echo "cProjectName          :: String" >> $@
	@echo "cProjectName          = \"$(ProjectName)\"" >> $@
	@echo "cProjectVersion       :: String" >> $@
	@echo "cProjectVersion       = \"$(ProjectVersion)\"" >> $@
	@echo "cProjectVersionInt    :: String" >> $@
	@echo "cProjectVersionInt    = \"$(ProjectVersionInt)\"" >> $@
	@echo "cProjectPatchLevel    :: String" >> $@
	@echo "cProjectPatchLevel    = \"$(ProjectPatchLevel)\"" >> $@
	@echo "cBooterVersion        :: String" >> $@
	@echo "cBooterVersion        = \"$(GhcVersion)\"" >> $@
	@echo "cStage                :: String" >> $@
	@echo "cStage                = show (STAGE :: Int)" >> $@
	@echo "cSplitObjs            :: String" >> $@
	@echo "cSplitObjs            = \"$(SupportsSplitObjs)\"" >> $@
	@echo "cGhcWithInterpreter   :: String" >> $@
	@echo "cGhcWithInterpreter   = \"$(GhcWithInterpreter)\"" >> $@
	@echo "cGhcWithNativeCodeGen :: String" >> $@
	@echo "cGhcWithNativeCodeGen = \"$(GhcWithNativeCodeGen)\"" >> $@
	@echo "cGhcWithSMP           :: String" >> $@
	@echo "cGhcWithSMP           = \"$(GhcWithSMP)\"" >> $@
	@echo "cGhcRTSWays           :: String" >> $@
	@echo "cGhcRTSWays           = \"$(GhcRTSWays)\"" >> $@
	@echo "cGhcUnregisterised    :: String" >> $@
	@echo "cGhcUnregisterised    = \"$(GhcUnregisterised)\"" >> $@
	@echo "cGhcEnableTablesNextToCode :: String" >> $@
	@echo "cGhcEnableTablesNextToCode = \"$(GhcEnableTablesNextToCode)\"" >> $@
	@echo "cLeadingUnderscore    :: String" >> $@
	@echo "cLeadingUnderscore    = \"$(LeadingUnderscore)\"" >> $@
	@echo "cRAWCPP_FLAGS         :: String" >> $@
	@echo "cRAWCPP_FLAGS         = \"$(RAWCPP_FLAGS)\"" >> $@
	@echo "cGCC                  :: String" >> $@
	@echo "cGCC                  = \"$(WhatGccIsCalled)\"" >> $@
	@echo "cMKDLL                :: String" >> $@
	@echo "cMKDLL                = \"$(BLD_DLL)\"" >> $@
	@echo "cLdIsGNULd            :: String" >> $@
	@echo "cLdIsGNULd            = \"$(LdIsGNULd)\"" >> $@
	@echo "cLD_X		     :: String" >> $@
	@echo "cLD_X		     = \"$(LD_X)\"" >> $@
	@echo "cGHC_DRIVER_DIR   :: String" >> $@
	@echo "cGHC_DRIVER_DIR   = \"$(GHC_DRIVER_DIR)\"" >> $@
	@echo "cGHC_TOUCHY_PGM       :: String" >> $@
	@echo "cGHC_TOUCHY_PGM       = \"$(GHC_TOUCHY_PGM)\"" >> $@
	@echo "cGHC_TOUCHY_DIR   :: String" >> $@
	@echo "cGHC_TOUCHY_DIR   = \"$(GHC_TOUCHY_DIR)\"" >> $@
	@echo "cGHC_UNLIT_PGM        :: String" >> $@
	@echo "cGHC_UNLIT_PGM        = \"$(GHC_UNLIT_PGM)\"" >> $@
	@echo "cGHC_UNLIT_DIR    :: String" >> $@
	@echo "cGHC_UNLIT_DIR    = \"$(GHC_UNLIT_DIR)\"" >> $@
	@echo "cGHC_MANGLER_PGM      :: String" >> $@
	@echo "cGHC_MANGLER_PGM      = \"$(GHC_MANGLER_PGM)\"" >> $@
	@echo "cGHC_MANGLER_DIR  :: String" >> $@
	@echo "cGHC_MANGLER_DIR  = \"$(GHC_MANGLER_DIR)\"" >> $@
	@echo "cGHC_SPLIT_PGM        :: String" >> $@
	@echo "cGHC_SPLIT_PGM        = \"$(GHC_SPLIT_PGM)\"" >> $@
	@echo "cGHC_SPLIT_DIR    :: String" >> $@
	@echo "cGHC_SPLIT_DIR    = \"$(GHC_SPLIT_DIR)\"" >> $@
	@echo "cGHC_SYSMAN_PGM       :: String" >> $@
	@echo "cGHC_SYSMAN_PGM       = \"$(GHC_SYSMAN)\"" >> $@
	@echo "cGHC_SYSMAN_DIR   :: String" >> $@
	@echo "cGHC_SYSMAN_DIR   = \"$(GHC_SYSMAN_DIR)\"" >> $@
	@echo "cGHC_CP               :: String" >> $@
	@echo "cGHC_CP               = \"$(GHC_CP)\"" >> $@
	@echo "cGHC_PERL             :: String" >> $@
	@echo "cGHC_PERL             = \"$(GHC_PERL)\"" >> $@
	@echo "cEnableWin32DLLs      :: String" >> $@
	@echo "cEnableWin32DLLs      = \"$(EnableWin32DLLs)\"" >> $@
	@echo "cCONTEXT_DIFF         :: String" >> $@
	@echo "cCONTEXT_DIFF         = \"$(CONTEXT_DIFF)\"" >> $@
	@echo "cUSER_WAY_NAMES       :: String" >> $@<commit_msg>Tweak whitespace<commit_after># -----------------------------------------------------------------------------
#
# (c) 2009 The University of Glasgow
#
# This file is part of the GHC build system.
#
# To understand how the build system works and how to modify it, see
#      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
#      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
#
# -----------------------------------------------------------------------------

# -----------------------------------------------------------------------------
# For expressing extra dependencies on source files

define compiler-hs-dependency # args: $1 = module, $2 = dependency

$$(foreach stage,1 2 3,\
 $$(foreach way,$$(compiler_stage$$(stage)_WAYS),\
  compiler/stage$$(stage)/build/$1.$$($$(way)_osuf))) : $2

endef

# -----------------------------------------------------------------------------
# Create compiler configuration
#
# The 'echo' commands simply spit the values of various make variables
# into Config.hs, whence they can be compiled and used by GHC itself

compiler_CONFIG_HS = compiler/main/Config.hs

ifneq "$(BINDIST)" "YES"
compiler/stage1/package-data.mk : $(compiler_CONFIG_HS)
compiler/stage2/package-data.mk : $(compiler_CONFIG_HS)
compiler/stage3/package-data.mk : $(compiler_CONFIG_HS)
endif

$(compiler_CONFIG_HS) : mk/config.mk mk/project.mk
	"$(RM)" $(RM_OPTS) $@
	@echo "Creating $@ ... "
	@echo "module Config where" >>$@
	@echo "cProjectName          :: String" >> $@
	@echo "cProjectName          = \"$(ProjectName)\"" >> $@
	@echo "cProjectVersion       :: String" >> $@
	@echo "cProjectVersion       = \"$(ProjectVersion)\"" >> $@
	@echo "cProjectVersionInt    :: String" >> $@
	@echo "cProjectVersionInt    = \"$(ProjectVersionInt)\"" >> $@
	@echo "cProjectPatchLevel    :: String" >> $@
	@echo "cProjectPatchLevel    = \"$(ProjectPatchLevel)\"" >> $@
	@echo "cBooterVersion        :: String" >> $@
	@echo "cBooterVersion        = \"$(GhcVersion)\"" >> $@
	@echo "cStage                :: String" >> $@
	@echo "cStage                = show (STAGE :: Int)" >> $@
	@echo "cSplitObjs            :: String" >> $@
	@echo "cSplitObjs            = \"$(SupportsSplitObjs)\"" >> $@
	@echo "cGhcWithInterpreter   :: String" >> $@
	@echo "cGhcWithInterpreter   = \"$(GhcWithInterpreter)\"" >> $@
	@echo "cGhcWithNativeCodeGen :: String" >> $@
	@echo "cGhcWithNativeCodeGen = \"$(GhcWithNativeCodeGen)\"" >> $@
	@echo "cGhcWithSMP           :: String" >> $@
	@echo "cGhcWithSMP           = \"$(GhcWithSMP)\"" >> $@
	@echo "cGhcRTSWays           :: String" >> $@
	@echo "cGhcRTSWays           = \"$(GhcRTSWays)\"" >> $@
	@echo "cGhcUnregisterised    :: String" >> $@
	@echo "cGhcUnregisterised    = \"$(GhcUnregisterised)\"" >> $@
	@echo "cGhcEnableTablesNextToCode :: String" >> $@
	@echo "cGhcEnableTablesNextToCode = \"$(GhcEnableTablesNextToCode)\"" >> $@
	@echo "cLeadingUnderscore    :: String" >> $@
	@echo "cLeadingUnderscore    = \"$(LeadingUnderscore)\"" >> $@
	@echo "cRAWCPP_FLAGS         :: String" >> $@
	@echo "cRAWCPP_FLAGS         = \"$(RAWCPP_FLAGS)\"" >> $@
	@echo "cGCC                  :: String" >> $@
	@echo "cGCC                  = \"$(WhatGccIsCalled)\"" >> $@
	@echo "cMKDLL                :: String" >> $@
	@echo "cMKDLL                = \"$(BLD_DLL)\"" >> $@
	@echo "cLdIsGNULd            :: String" >> $@
	@echo "cLdIsGNULd            = \"$(LdIsGNULd)\"" >> $@
	@echo "cLD_X                 :: String" >> $@
	@echo "cLD_X                 = \"$(LD_X)\"" >> $@
	@echo "cGHC_DRIVER_DIR       :: String" >> $@
	@echo "cGHC_DRIVER_DIR       = \"$(GHC_DRIVER_DIR)\"" >> $@
	@echo "cGHC_TOUCHY_PGM       :: String" >> $@
	@echo "cGHC_TOUCHY_PGM       = \"$(GHC_TOUCHY_PGM)\"" >> $@
	@echo "cGHC_TOUCHY_DIR       :: String" >> $@
	@echo "cGHC_TOUCHY_DIR       = \"$(GHC_TOUCHY_DIR)\"" >> $@
	@echo "cGHC_UNLIT_PGM        :: String" >> $@
	@echo "cGHC_UNLIT_PGM        = \"$(GHC_UNLIT_PGM)\"" >> $@
	@echo "cGHC_UNLIT_DIR        :: String" >> $@
	@echo "cGHC_UNLIT_DIR        = \"$(GHC_UNLIT_DIR)\"" >> $@
	@echo "cGHC_MANGLER_PGM      :: String" >> $@
	@echo "cGHC_MANGLER_PGM      = \"$(GHC_MANGLER_PGM)\"" >> $@
	@echo "cGHC_MANGLER_DIR      :: String" >> $@
	@echo "cGHC_MANGLER_DIR      = \"$(GHC_MANGLER_DIR)\"" >> $@
	@echo "cGHC_SPLIT_PGM        :: String" >> $@
	@echo "cGHC_SPLIT_PGM        = \"$(GHC_SPLIT_PGM)\"" >> $@
	@echo "cGHC_SPLIT_DIR        :: String" >> $@
	@echo "cGHC_SPLIT_DIR        = \"$(GHC_SPLIT_DIR)\"" >> $@
	@echo "cGHC_SYSMAN_PGM       :: String" >> $@
	@echo "cGHC_SYSMAN_PGM       = \"$(GHC_SYSMAN)\"" >> $@
	@echo "cGHC_SYSMAN_DIR       :: String" >> $@
	@echo "cGHC_SYSMAN_DIR       = \"$(GHC_SYSMAN_DIR)\"" >> $@
	@echo "cGHC_CP               :: String" >> $@
	@echo "cGHC_CP               = \"$(GHC_CP)\"" >> $@
	@echo "cGHC_PERL             :: String" >> $@
	@echo "cGHC_PERL             = \"$(GHC_PERL)\"" >> $@
	@echo "cEnableWin32DLLs      :: String" >> $@
	@echo "cEnableWin32DLLs      = \"$(EnableWin32DLLs)\"" >> $@
	@echo "cCONTEXT_DIFF         :: String" >> $@
	@echo "cCONTEXT_DIFF         = \"$(CONTEXT_DIFF)\"" >> $@
	@echo "cUSER_WAY_NAMES       :: String" >> $@
{'fraction_non_alphanumeric': 0.25265413460601926, 'fraction_numerical': 0.0038959774033310605, 'mean_word_length': 2.2994858611825193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 283, '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': '2829631', 'n_tokens_mistral': 3910, 'n_tokens_neox': 3685, 'n_words': 625}