Skip to content

Commit 592ddf1

Browse files
update clang fastmath
1 parent 5f285b8 commit 592ddf1

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)