Skip to content

Commit

Permalink
🐛 Pass build properties through to arduino-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancheek authored and SterlingPeet committed Aug 8, 2024
1 parent 8980f5b commit 520b9c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/arduino_cli_cmake_wrapper/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def parse_arguments(arguments: Optional[List[str]]) -> argparse.Namespace:
nargs='*',
help='List of build properties to supply',
required=False,
default=[],
)
parser.add_argument(
'-p',
Expand Down Expand Up @@ -267,8 +268,13 @@ def main(arguments: Optional[List[str]] = None):
level=logging.INFO
)

properties = []
for prop in args.properties:
properties.append('--build-property')
properties.append(prop)

# Run the build
test_file_map, stdout, stderr = build(args.board, args.libraries, [])
test_file_map, stdout, stderr = build(args.board, args.libraries, properties)

# Parse the output into stages
stages = parse(stdout)
Expand Down

0 comments on commit 520b9c3

Please sign in to comment.