Repository: incubator-mynewt-newt Updated Branches: refs/heads/develop 5125fc181 -> 401b6a93f
newt; use filename starting from package/src when seeing if it should be ignored or not. Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/401b6a93 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/401b6a93 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/401b6a93 Branch: refs/heads/develop Commit: 401b6a93f241bee955a5a91fb68e8922b34bb6d7 Parents: 5125fc1 Author: Marko Kiiskila <[email protected]> Authored: Mon Jan 9 16:03:30 2017 -0800 Committer: Marko Kiiskila <[email protected]> Committed: Mon Jan 9 16:18:03 2017 -0800 ---------------------------------------------------------------------- newt/toolchain/compiler.go | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/401b6a93/newt/toolchain/compiler.go ---------------------------------------------------------------------- diff --git a/newt/toolchain/compiler.go b/newt/toolchain/compiler.go index e7d962e..566cc87 100644 --- a/newt/toolchain/compiler.go +++ b/newt/toolchain/compiler.go @@ -536,6 +536,7 @@ func (c *Compiler) CompileFile(file string, compilerType int) error { } func (c *Compiler) shouldIgnoreFile(file string) bool { + file = strings.TrimPrefix(file, c.srcDir) for _, re := range c.info.IgnoreFiles { if match := re.MatchString(file); match { return true
