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.62.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.61.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.60.2 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.60.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.59.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.58.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.57.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.56.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.55.1 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.55.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.54.3 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.54.2 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.54.1 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.54.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.53.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.52.1 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.52.0 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.51.2 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.51.1 lib/bake/toolchain/clang_analyze.rb
bake-toolkit-2.51.0 lib/bake/toolchain/clang_analyze.rb