Skip to content

Commit

Permalink
Backwards compat option in build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
netheril96 committed Aug 2, 2023
1 parent 453711a commit 8345530
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.py
Expand Up @@ -32,6 +32,9 @@ def main():
help="The root of build directory. If unset, a temporary directory will be used.",
default="",
)
parser.add_argument(
"--enable_test", default=False, help="Enable all tests", action="store_true"
)
parser.add_argument(
"--enable_unit_test",
default=False,
Expand Down Expand Up @@ -61,6 +64,10 @@ def main():
"--vcpkg_root must point to a directory. Install from https://vcpkg.io if necessary."
)

if args.enable_test: # For backwards compat
args.enable_unit_test = True
args.enable_integration_test = True

source_dir = os.path.dirname(os.path.realpath(__file__))
os.chdir(get_build_root(args.build_root))
configure_args = [
Expand Down

0 comments on commit 8345530

Please sign in to comment.