Merge pull request #208 from danw/microfactory_race
Disable parallel compilation when using race detector
This commit is contained in:
commit
1e428e0c05
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ func (p *GoPackage) Compile(config *Config, outDir string) error {
|
|||
"-o", p.output,
|
||||
"-p", p.Name,
|
||||
"-complete", "-pack", "-nolocalimports")
|
||||
if !isGo18 {
|
||||
if !isGo18 && !config.Race {
|
||||
cmd.Args = append(cmd.Args, "-c", fmt.Sprintf("%d", runtime.NumCPU()))
|
||||
}
|
||||
if config.Race {
|
||||
|
|
Loading…
Reference in a new issue