Add flagNoMacro guard

This commit is contained in:
Alex Yatskov 2015-07-20 13:57:37 +09:00
parent c4624d7c0b
commit f35909340b

View File

@ -50,6 +50,7 @@ func (t *taskDef) process(taskName, srcDir, dstDir string, conf *config, flags i
}
}
if flags&flagNoMacro == 0 {
for _, macro := range t.Macros {
if len(macro) == 0 {
continue
@ -67,6 +68,7 @@ func (t *taskDef) process(taskName, srcDir, dstDir string, conf *config, flags i
return err
}
}
}
if flags&flagNoLink == 0 {
for _, currLink := range t.Links {