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