<commit_before>require "dep/premake-modules/xcode-alt"

function cbuildoptions()
	filter "action:vs2015"
		buildoptions { '/MP', '/Wall', '-Wno-unused-parameter', '-Qunused-arguments' }
	filter { "action:vs2015", "platforms:x64" }
		buildoptions {'-Wshorten-64-to-32'}
	filter "action:gmake"
		buildoptions { '-std=gnu11', '-Wall', '-Wno-multichar' }
	filter "action:xcode4"
		buildoptions { '-std=gnu11', '-Wall', '-Wno-multichar' }
	filter {}
end

function externcbuildoptions()
	filter "action:vs2015"
		buildoptions { '/MP', '-Qunused-arguments', '-Wno-unused-const-variable' }
	filter "action:gmake"
		buildoptions { '-std=gnu11', '-Wno-unused-const-variable', '-Wno-shorten-64-to-32' }
	filter "action:xcode4"
		buildoptions { '-std=gnu11', '-Wno-unused-const-variable', '-Wno-shorten-64-to-32' }
	filter {}
end

function cxxbuildoptions()
	filter "action:vs2015"
		buildoptions { '/MP', '-Qunused-arguments' }
	filter "action:gmake"
		buildoptions { '-std=gnu++11' }
	filter "action:xcode4"
		buildoptions { '-std=gnu++11' }
	filter {}
end

-- Premake 5 configurations
workspace "otfcc"
	configurations { "Debug", "Release" }
	platforms { "x32", "x64" }
	
	defines {
		'_CARYLL_USE_PRE_SERIALIZED',
		'MAIN_VER=0',
		"SECONDARY_VER=3",
		"PATCH_VER=4"
	}
	
	location "build"
	includedirs { "dep", "lib" }
	
	filter "action:vs2015"
		location "build/vs"
		toolset "msc-LLVM-vs2014"
		defines { '_CRT_SECURE_NO_WARNINGS', '_CRT_NONSTDC_NO_DEPRECATE' }
		flags { "StaticRuntime" }
		includedirs { "dep/polyfill-msvc" }
	filter "action:gmake"
		location "build/gmake"
	filter "action:xcode4"
		location "build/xcode"
	filter {}
	
	filter "configurations:Debug"
		defines { "DEBUG" }
		flags { "Symbols" }
	filter "configurations:Release"<commit_msg>change build script<commit_after>require "dep/premake-modules/xcode-alt"

function generalOptions()
	defines {
		'_CARYLL_USE_PRE_SERIALIZED',
		'MAIN_VER=0',
		"SECONDARY_VER=4",
		"PATCH_VER=0"
	}
end

function cbuildoptions()
	filter "action:vs2015"
		buildoptions { '/MP', '/Wall', '-Wno-unused-parameter', '-Qunused-arguments' }
	filter { "action:vs2015", "platforms:x64" }
		buildoptions {'-Wshorten-64-to-32'}
	filter "action:gmake"
		buildoptions { '-std=gnu11', '-Wall', '-Wno-multichar' }
	filter "action:xcode4"
		buildoptions { '-std=gnu11', '-Wall', '-Wno-multichar' }
	filter {}
end

function externcbuildoptions()
	filter "action:vs2015"
		buildoptions { '/MP', '-Qunused-arguments', '-Wno-unused-const-variable' }
	filter "action:gmake"
		buildoptions { '-std=gnu11', '-Wno-unused-const-variable', '-Wno-shorten-64-to-32' }
	filter "action:xcode4"
		buildoptions { '-std=gnu11', '-Wno-unused-const-variable', '-Wno-shorten-64-to-32' }
	filter {}
end

function cxxbuildoptions()
	filter "action:vs2015"
		buildoptions { '/MP', '-Qunused-arguments' }
	filter "action:gmake"
		buildoptions { '-std=gnu++11' }
	filter "action:xcode4"
		buildoptions { '-std=gnu++11' }
	filter {}
end

-- Premake 5 configurations
workspace "otfcc"
	configurations { "Debug", "Release" }
	platforms { "x32", "x64" }
	
	generalOptions()
	
	location "build"
	includedirs { "dep", "lib" }
	
	filter "action:vs2015"
		location "build/vs"
		toolset "msc-LLVM-vs2014"
		defines { '_CRT_SECURE_NO_WARNINGS', '_CRT_NONSTDC_NO_DEPRECATE' }
		flags { "StaticRuntime" }
		includedirs { "dep/polyfill-msvc" }
	filter "action:gmake"
		location "build/gmake"
	filter "action:xcode4"
		location "build/xcode"
	filter {}
	
	filter "configurations:Debug"
		defines { "DEBUG" }
		flags { "Symbols" }
	filter "configurations:Release"
{'fraction_non_alphanumeric': 0.1685866816521495, 'fraction_numerical': 0.03484124754144423, 'mean_word_length': 4.6778309409888355, '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': '4458988', 'n_tokens_mistral': 1486, 'n_tokens_neox': 1361, 'n_words': 245}