Disable parallel compilation when using race detector
These options aren't compatible with one another. Change-Id: I1ec52b8fa8465edd551bcd1c20a9a902a5669e52
This commit is contained in:
parent
bb58119655
commit
db29636ba2
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,
|
"-o", p.output,
|
||||||
"-p", p.Name,
|
"-p", p.Name,
|
||||||
"-complete", "-pack", "-nolocalimports")
|
"-complete", "-pack", "-nolocalimports")
|
||||||
if !isGo18 {
|
if !isGo18 && !config.Race {
|
||||||
cmd.Args = append(cmd.Args, "-c", fmt.Sprintf("%d", runtime.NumCPU()))
|
cmd.Args = append(cmd.Args, "-c", fmt.Sprintf("%d", runtime.NumCPU()))
|
||||||
}
|
}
|
||||||
if config.Race {
|
if config.Race {
|
||||||
|
|
Loading…
Reference in a new issue