Skip to content

Commit 466844a

Browse files
authored
Merge pull request #377 from coffeemakingtoaster/master
Migrate clang call from deprecated '-Ofast' to '-O3 -ffast-math'
2 parents e900175 + 592ddf1 commit 466844a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd_build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func runBuild(mode bind.BuildMode, cfg *BuildCfg) error {
231231
}
232232

233233
cflags := strings.Fields(strings.TrimSpace(pycfg.CFlags))
234-
cflags = append(cflags, "-fPIC", "-Ofast")
234+
cflags = append(cflags, "-fPIC", "-O3", "-ffast-math")
235235
if include, exists := os.LookupEnv("GOPY_INCLUDE"); exists {
236236
cflags = append(cflags, "-I"+filepath.ToSlash(include))
237237
}

0 commit comments

Comments
 (0)