<commit_before># This contains overrides for the "standard" compiler flags built into Omnibus.
#
# To make it available to all software definitions, it's imported from the
# project definition using `require_relative`.

def with_codethink_compiler_flags(platform, env = {}, opts = {})
  env = with_standard_compiler_flags(env = env, opts = opts)
  compiler_flags = 
    case platform
    when "aix"
      # Use GCC instead of xlC on AIX.
      # For now we don't force a 64-bit build, it probably makes sense to do that though.
      {
        "CC" => "gcc",
        "CXX" => "g++",
        "CFLAGS" => "-I#{install_dir}/embedded/include -O2",
        "LDFLAGS" => "-L#{install_dir}/embedded/lib",
        "LD" => "ld",
      }
    when "solaris2"<commit_msg>Fix AIX build, and make it a 64-bit one<commit_after># This contains overrides for the "standard" compiler flags built into Omnibus.
#
# To make it available to all software definitions, it's imported from the
# project definition using `require_relative`.

def with_codethink_compiler_flags(platform, env = {}, opts = {})
  env = with_standard_compiler_flags(env = env, opts = opts)
  compiler_flags = 
    case platform
    when "aix"
      # Chef Software use the IBM compiler on AIX, but it's probably more
      # reliable for us to compile GCC with GCC.
      {
        "ARFLAGS" => "-X64",
        "CC" => "gcc -maix64",
        "CXX" => "g++ -maix64",
        "CFLAGS" => "-I#{install_dir}/embedded/include -O2",
        "LDFLAGS" => "-L#{install_dir}/embedded/lib",
        "LD" => "ld",
        "OBJECT_MODE" => "64",
      }
    when "solaris2"
{'fraction_non_alphanumeric': 0.12825278810408922, 'fraction_numerical': 0.009913258983890954, 'mean_word_length': 2.9009661835748792, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '7648852', 'n_tokens_mistral': 527, 'n_tokens_neox': 504, 'n_words': 166}