#!/usr/bin/env python3
"""Calls `gn` with the right --dotfile= and --root= arguments for LLVM."""
# GN normally expects a file called '.gn' at the root of the repository.
# Since LLVM's GN build isn't supported, putting that file at the root
# is deemed inappropriate, which requires passing --dotfile= and -root= to GN.
# Since that gets old fast, this script automatically passes these arguments.
=
=
return
return None
return
return
return 1
# Find real gn executable.
=
# Not on path. See if get.py downloaded a prebuilt binary and run that
# if it's there, or suggest to run get.py if it isn't.
=
return
=
return
# Compute --dotfile= and --root= args to add.
=
=
# `gn help` gets confused by the switches.
=
=
=
=
# Run GN command with --dotfile= and --root= added.
= + +