<commit_before># Default flags for Pedigree's build, per architecture

#------------------------- All Architectures -------------------------#

# Generic entry-level flags (that everyone should have)
generic_cflags = '-std=gnu99 -fno-builtin -nostdinc -nostdlib -ffreestanding -g0 -O3 '
generic_cxxflags = generic_cflags.replace('-std=gnu99', '-std=gnu++98') + ' -fno-rtti -fno-exceptions '
#generic_cxxflags = generic_cflags.replace('-std=gnu99', '-std=c++0x') + ' -fno-rtti -fno-exceptions '

# Warning flags (that force us to write betterish code)
warning_flags = '-Wall -Wextra -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-long-long -Wno-variadic-macros '

# Language-specific warnings
warning_flags_c = '-Wnested-externs '
warning_flags_cxx = ''

# Turn off some warnings (because they kill the build)
warning_flags_off = '-Wno-unused -Wno-unused-variable -Wno-conversion -Wno-format -Wno-empty-body'

# Generic assembler flags
generic_asflags = '-f elf'

# Generic link flags (that everyone should have)<commit_msg>Set -O2 for now. The most recent NetworkStack modification fails with -O3, needs to be debugged further.<commit_after># Default flags for Pedigree's build, per architecture

#------------------------- All Architectures -------------------------#

# Generic entry-level flags (that everyone should have)
generic_cflags = '-std=gnu99 -fno-builtin -nostdinc -nostdlib -ffreestanding -g0 -O2 '
generic_cxxflags = generic_cflags.replace('-std=gnu99', '-std=gnu++98') + ' -fno-rtti -fno-exceptions '
#generic_cxxflags = generic_cflags.replace('-std=gnu99', '-std=c++0x') + ' -fno-rtti -fno-exceptions '

# Warning flags (that force us to write betterish code)
warning_flags = '-Wall -Wextra -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-long-long -Wno-variadic-macros '

# Language-specific warnings
warning_flags_c = '-Wnested-externs '
warning_flags_cxx = ''

# Turn off some warnings (because they kill the build)
warning_flags_off = '-Wno-unused -Wno-unused-variable -Wno-conversion -Wno-format -Wno-empty-body'

# Generic assembler flags
generic_asflags = '-f elf'

# Generic link flags (that everyone should have)
{'fraction_non_alphanumeric': 0.16565562295846945, 'fraction_numerical': 0.011199253383107793, 'mean_word_length': 3.650759219088937, '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': '1515828', 'n_tokens_mistral': 711, 'n_tokens_neox': 697, 'n_words': 185}