mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
[tools] add target os option to tools/generate_idefiles.py
Change-Id: I496a352376041718e09fda7edf8d68ebde0ac4ca Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104562 Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com>
This commit is contained in:
parent
0779751b82
commit
d3cb666ac9
1 changed files with 6 additions and 1 deletions
|
@ -50,7 +50,8 @@ def GenerateCompileCommands(options):
|
|||
if gn_result != 0:
|
||||
return gn_result
|
||||
|
||||
out_folder = utils.GetBuildRoot(HOST_OS, mode="debug", arch=options.arch)
|
||||
out_folder = utils.GetBuildRoot(
|
||||
HOST_OS, mode="debug", arch=options.arch, target_os=options.os)
|
||||
|
||||
if not os.path.isdir(out_folder):
|
||||
return 1
|
||||
|
@ -140,6 +141,10 @@ def main(argv):
|
|||
help="Target architecture for runtime sources.",
|
||||
default="x64")
|
||||
|
||||
parser.add_argument("-s", "--os",
|
||||
help="Target operating system for runtime sources.",
|
||||
default=HOST_OS)
|
||||
|
||||
options = parser.parse_args(argv[1:])
|
||||
|
||||
return GenerateIdeFiles(options)
|
||||
|
|
Loading…
Reference in a new issue