<commit_before>-- shakefile.hs
-- Copyright (c) 2014 - The Foreseeable Future, <EMAIL>
-- Licensed under the Apache License Version 2.0.

import System.Exit
import Development.Shake
import Development.Shake.Command
import Development.Shake.FilePath
import Development.Shake.Util

main :: IO()

sysroot		= "build/sysroot"
prefix		= "usr/local"
outputBin	= "flaxc"

finalOutput	= sysroot </> prefix </> "bin" </> outputBin



llvmConfig	= "llvm-config"
disableWarn	= "-Wno-unused-parameter -Wno-sign-conversion -Wno-padded -Wno-c++98-compat -Wno-weak-vtables -Wno-documentation-unknown-command -Wno-old-style-cast -Wno-c++98-compat-pedantic -Wno-conversion -Wno-shadow -Wno-global-constructors -Wno-exit-time-destructors -Wno-missing-noreturn -Wno-unused-macros -Wno-switch-enum -Wno-deprecated -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-gnu-zero-variadic-macro-arguments -Wno-trigraphs"

cxxFlags	= "-std=gnu++1z -g -Wall -Weverything " ++ disableWarn ++ " -frtti -fexceptions -fno-omit-frame-pointer -I`" ++ llvmConfig ++ " --includedir`"

llvmConfigInvoke	= "`" ++ llvmConfig ++ " --cxxflags --ldflags --system-libs --libs core jit native bitwriter`"



compiledTest		= "build/test"
testSource			= "build/test.flx"
flaxcFlags			= "-O3 -no-lowercase-builtin -o " ++ compiledTest ++ " -sysroot '" ++ sysroot ++ "'"


main = shakeArgs shakeOptions{shakeFiles="build"} $ do
	want [compiledTest]
<commit_msg>forgot not everybody has c++1z.<commit_after>-- shakefile.hs
-- Copyright (c) 2014 - The Foreseeable Future, <EMAIL>
-- Licensed under the Apache License Version 2.0.

import System.Exit
import Development.Shake
import Development.Shake.Command
import Development.Shake.FilePath
import Development.Shake.Util

main :: IO()

sysroot		= "build/sysroot"
prefix		= "usr/local"
outputBin	= "flaxc"

finalOutput	= sysroot </> prefix </> "bin" </> outputBin



llvmConfig	= "llvm-config"
disableWarn	= "-Wno-unused-parameter -Wno-sign-conversion -Wno-padded -Wno-c++98-compat -Wno-weak-vtables -Wno-documentation-unknown-command -Wno-old-style-cast -Wno-c++98-compat-pedantic -Wno-conversion -Wno-shadow -Wno-global-constructors -Wno-exit-time-destructors -Wno-missing-noreturn -Wno-unused-macros -Wno-switch-enum -Wno-deprecated -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-gnu-zero-variadic-macro-arguments -Wno-trigraphs"

cxxFlags	= "-std=gnu++1y -g -Wall -Weverything " ++ disableWarn ++ " -frtti -fexceptions -fno-omit-frame-pointer -I`" ++ llvmConfig ++ " --includedir`"

llvmConfigInvoke	= "`" ++ llvmConfig ++ " --cxxflags --ldflags --system-libs --libs core jit native bitwriter`"



compiledTest		= "build/test"
testSource			= "build/test.flx"
flaxcFlags			= "-O3 -no-lowercase-builtin -o " ++ compiledTest ++ " -sysroot '" ++ sysroot ++ "'"


main = shakeArgs shakeOptions{shakeFiles="build"} $ do
	want [compiledTest]

{'fraction_non_alphanumeric': 0.15635980323260718, 'fraction_numerical': 0.008784258608573436, 'mean_word_length': 4.030035335689046, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4499258', 'n_tokens_mistral': 1057, 'n_tokens_neox': 1016, 'n_words': 206}