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.38.3 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.38.2 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.38.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.38.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.14 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.13 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.12 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.11 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.10 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.8 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.7 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.6 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.5 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.4 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.3 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.2 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.37.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.36.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.36.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb