Skip to content

Commit 1227533

Browse files
committed
perf: add O3 optimization flag to CFLAGS in AutoconfBuild configure
- Enables level 3 optimization (-O3) in the C compiler flags for better performance - Maintains the existing include directory path setting
1 parent f8e66fd commit 1227533

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/builder/buildsystems.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (a *AutoconfBuild) Configure(lib *Library, srcPath, buildDir, installDir st
2727
libDir := filepath.Join(installDir, "lib")
2828

2929
args = append(args,
30-
fmt.Sprintf("CFLAGS=-I%s", incDir),
30+
fmt.Sprintf("CFLAGS=-O3 -I%s", incDir),
3131
fmt.Sprintf("CPPFLAGS=-I%s", incDir),
3232
fmt.Sprintf("LDFLAGS=-L%s", libDir),
3333
)

0 commit comments

Comments
 (0)