Sha256: 4a69377b39827e01668556538c25440b626f53d48e73465124f3c3bc63796a60

Contents?: true

Size: 1.23 KB

Versions: 45

Compression:

Stored size: 1.23 KB

Contents

require_relative '../../common/utils'
require_relative '../toolchain/provider'

module Bake
  module Toolchain
    CLANG_ANALYZE_CHAIN = Provider.add("CLANG_ANALYZE")

    CLANG_ANALYZE_CHAIN[:COMPILER][:CPP].update({
      :COMMAND => "clang++",
      :DEFINE_FLAG => "-D",
      :OBJECT_FILE_FLAG => "-o",
      :OBJ_FLAG_SPACE => true,
      :OBJECT_FILE_ENDING => ".plist",
      :COMPILE_FLAGS => "-cc1 -analyze -analyzer-output=plist ",
      :DEP_FLAGS => "",
      :DEP_FLAGS_FILENAME  => false,
      :ERROR_PARSER => nil
    })

    CLANG_ANALYZE_CHAIN[:COMPILER][:C] = Utils.deep_copy(CLANG_ANALYZE_CHAIN[:COMPILER][:CPP])
    CLANG_ANALYZE_CHAIN[:COMPILER][:C][:SOURCE_FILE_ENDINGS] = Provider.default[:COMPILER][:C][:SOURCE_FILE_ENDINGS]
    CLANG_ANALYZE_CHAIN[:COMPILER][:C][:COMMAND] = "clang"

    CLANG_ANALYZE_CHAIN[:COMPILER][:ASM] = Utils.deep_copy(CLANG_ANALYZE_CHAIN[:COMPILER][:C])
    CLANG_ANALYZE_CHAIN[:COMPILER][:ASM][:SOURCE_FILE_ENDINGS] = Provider.default[:COMPILER][:ASM][:SOURCE_FILE_ENDINGS]
    CLANG_ANALYZE_CHAIN[:COMPILER][:ASM][:PREFIX] = Provider.default[:COMPILER][:ASM][:PREFIX]

    CLANG_ANALYZE_CHAIN[:ARCHIVER][:COMMAND] = ""
    CLANG_ANALYZE_CHAIN[:LINKER][:COMMAND] = ""
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
bake-toolkit-2.72.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.71.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.70.1 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.70.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.69.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.68.1 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.68.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.67.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.66.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.65.2 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.65.1 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.65.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.64.4 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.64.3 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.64.2 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.64.1 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.64.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.63.2 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.63.1 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.63.0 lib/bake/toolchain/clang_analyze.rb