Skip to content

Commit

Permalink
Pass "-m opt" on Linux/Mac in buck2.py
Browse files Browse the repository at this point in the history
Summary: Testing if this helps with perf, as recently I moved usage from `buck2.sh` to `buck2.py` and the buck2 CI perf got affected.

Reviewed By: JakobDegen

Differential Revision: D67291815

fbshipit-source-id: 06a04cb264fd65d494e8abc10e77dd240ca71a20
  • Loading branch information
Luis Regino Hernández authored and facebook-github-bot committed Dec 17, 2024
1 parent cdd4882 commit 78453ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buck2.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_extra_build_params(args: argparse.Namespace) -> List[str]:
if system_platform == "Windows":
return ["@fbcode//mode/opt-win"]

params = []
params = ["-m", "opt"]

arch_platform = platform.machine()
if arch_platform == "x86_64":
Expand Down

0 comments on commit 78453ba

Please sign in to comment.