Sha256: 91907a1cc032abdac42604ab5d6dd3f312900e1e4a24ebeed9bfc3ac7a4d7eb0

Contents?: true

Size: 931 Bytes

Versions: 86

Compression:

Stored size: 931 Bytes

Contents

require 'bake/toolchain/errorparser/error_parser'

module Bake
  class TILinkerErrorParser < ErrorParser

    def initialize()
      # todo: is every line an error?
      # todo: some linker errors look like simple text, dunno how to parse properly...
      # @error_expression1 = /(.*:\(\..*\)): (.*)/  # e.g. /c/Tool/Temp/ccAlar4R.o:x.cpp:(.text+0x17): undefined reference to `_a'
      # @error_expression2 = /(.*):([0-9]+): (.*)/  # e.g. /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld:roodi.yml.a:1: syntax error
    end

    def scan_lines(consoleOutput, proj_dir)
      res = []
      consoleOutput[0].each_line do |l|
        l.rstrip!
        d = ErrorDesc.new
        if l != "<Linking>" then
          d.file_name = proj_dir
          d.line_number = 0
          d.message = l
          d.severity = SEVERITY_ERROR
        end
        res << d
      end
      [res, consoleOutput]
    end

  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
bake-toolkit-2.46.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.45.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.44.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.44.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.43.2 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.43.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.43.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.42.3 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.42.2 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.42.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.42.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.41.4 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.41.3 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.41.2 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.41.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.41.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.40.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.40.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.39.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.39.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb