Skip to content

Commit

Permalink
[native_toolchain_c] Compile with -O3 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Nov 25, 2024
1 parent 579688b commit 496e5e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkgs/native_toolchain_c/lib/src/cbuilder/cbuilder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class CBuilder extends CTool implements Builder {
super.language = Language.c,
super.cppLinkStdLib,
super.linkModePreference,
super.optimizationLevel = OptimizationLevel.oS,
super.optimizationLevel = OptimizationLevel.o3,
}) : super(type: OutputType.library);

CBuilder.executable({
Expand All @@ -89,7 +89,7 @@ class CBuilder extends CTool implements Builder {
super.std,
super.language = Language.c,
super.cppLinkStdLib,
super.optimizationLevel = OptimizationLevel.oS,
super.optimizationLevel = OptimizationLevel.o3,
}) : super(
type: OutputType.executable,
assetName: null,
Expand Down
2 changes: 1 addition & 1 deletion pkgs/native_toolchain_c/lib/src/cbuilder/clinker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CLinker extends CTool implements Linker {
super.language = Language.c,
super.cppLinkStdLib,
super.linkModePreference,
super.optimizationLevel = OptimizationLevel.oS,
super.optimizationLevel = OptimizationLevel.o3,
}) : super(type: OutputType.library);

/// Runs the C Linker with on this C build spec.
Expand Down

0 comments on commit 496e5e4

Please sign in to comment.