Skip to content

Commit

Permalink
--extra-cmake-defines should be a global flag
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookincubator/zstrong#858

Because it needs to be passed to other commands that use project
hashes, such as "test".

(in general there are probably a lot more of these, just fixing the
ones I've ran into so far)

Reviewed By: genevievehelsel

Differential Revision: D58082245

fbshipit-source-id: 09fa6b5ce4cc4b3ae7ecfb34ac83681cecb36e3c
  • Loading branch information
Simon Marlow authored and facebook-github-bot committed Jun 4, 2024
1 parent 30681d3 commit 60d4573
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build/fbcode_builder/getdeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,14 +788,6 @@ def setup_project_cmd_parser(self, parser):
parser.add_argument(
"--schedule-type", help="Indicates how the build was activated"
)
parser.add_argument(
"--extra-cmake-defines",
help=(
"Input json map that contains extra cmake defines to be used "
"when compiling the current project and all its deps. "
'e.g: \'{"CMAKE_CXX_FLAGS": "--bla"}\''
),
)
parser.add_argument(
"--cmake-target",
help=("Target for cmake build."),
Expand Down Expand Up @@ -1326,6 +1318,14 @@ def add_common_arg(*args, **kwargs):
action="store_true",
default=False,
)
add_common_arg(
"--extra-cmake-defines",
help=(
"Input json map that contains extra cmake defines to be used "
"when compiling the current project and all its deps. "
'e.g: \'{"CMAKE_CXX_FLAGS": "--bla"}\''
),
)
add_common_arg(
"--allow-system-packages",
help="Allow satisfying third party deps from installed system packages",
Expand Down

0 comments on commit 60d4573

Please sign in to comment.