Skip to content

Commit

Permalink
TMP: disable parallel builds temporarly
Browse files Browse the repository at this point in the history
Running generator parallel in a cmake project screws up objectbox-model json and header file
  • Loading branch information
dan-obx committed Aug 13, 2024
1 parent 217c3a7 commit 3702a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cmake/cmake.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (cmake *Cmake) BuildTarget() ([]byte, []byte, error) {
func (cmake *Cmake) BuildDefaults() ([]byte, []byte, error) {
return cmakeExec(cmake.ConfDir,
"--build", cmake.BuildDir,
"--parallel "+strconv.FormatInt(int64(runtime.NumCPU()/2), 10),
// "--parallel "+strconv.FormatInt(int64(runtime.NumCPU()/2), 10),
)
}

Expand All @@ -204,7 +204,7 @@ func (cmake *Cmake) BuildDefaultsWithConfig(config string) ([]byte, []byte, erro
return cmakeExec(cmake.ConfDir,
"--build", cmake.BuildDir,
"--config", config,
"--parallel "+strconv.FormatInt(int64(runtime.NumCPU()/2), 10),
// "--parallel "+strconv.FormatInt(int64(runtime.NumCPU()/2), 10),
)
}

Expand Down

0 comments on commit 3702a70

Please sign in to comment.