[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:
Daco Harkes 2019-06-04 08:13:38 +00:00 committed by commit-bot@chromium.org
parent 0779751b82
commit d3cb666ac9

View file

@ -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)