Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
build.py: add '--target'
Browse files Browse the repository at this point in the history
Fix issue #45
  • Loading branch information
ruslo committed Sep 17, 2015
1 parent c096d76 commit 13d92f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@
help="Number of concurrent build operations"
)

parser.add_argument(
'--target',
help="Target to build for the 'cmake --build' command"
)

args = parser.parse_args()

polly_toolchain = detail.toolchain_name.get(args.toolchain)
Expand Down Expand Up @@ -298,6 +303,8 @@
build_command.append('install/strip')
else:
build_command.append('install')
elif args.target:
build_command += ['--target', args.target]

# NOTE: This must be the last `build_command` modification!
build_command.append('--')
Expand Down

0 comments on commit 13d92f3

Please sign in to comment.