|
|
|
|
|
|
|
|
'--toolchain-json5', |
|
|
'--toolchain-json5', |
|
|
'-T2', |
|
|
'-T2', |
|
|
help='The toolchain JSON to use with the bootstrapped executable', |
|
|
help='The toolchain JSON to use with the bootstrapped executable', |
|
|
required=True, |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
parser.add_argument( |
|
|
|
|
|
'--build-only', |
|
|
|
|
|
action='store_true', |
|
|
|
|
|
help='Only build the `dds` executable. Skip second-phase and tests.') |
|
|
args = parser.parse_args(argv) |
|
|
args = parser.parse_args(argv) |
|
|
|
|
|
|
|
|
|
|
|
if not args.build_only and not args.toolchain_json5: |
|
|
|
|
|
raise RuntimeError( |
|
|
|
|
|
'The --toolchain-json5/-T2 argument is required (unless using --build-only)' |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
opts = CIOptions( |
|
|
opts = CIOptions( |
|
|
toolchain=args.toolchain, toolchain_json5=args.toolchain_json5) |
|
|
toolchain=args.toolchain, toolchain_json5=args.toolchain_json5) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
('--repo-dir', ci_repo_dir), |
|
|
('--repo-dir', ci_repo_dir), |
|
|
]) |
|
|
]) |
|
|
print('Main build PASSED!') |
|
|
print('Main build PASSED!') |
|
|
|
|
|
print(f'A `dds` executable has been generated: {paths.CUR_BUILT_DDS}') |
|
|
|
|
|
|
|
|
|
|
|
if args.build_only: |
|
|
|
|
|
print( |
|
|
|
|
|
f'`--build-only` was given, so second phase and tests will not execute' |
|
|
|
|
|
) |
|
|
|
|
|
return 0 |
|
|
|
|
|
|
|
|
# Delete the catalog database, since there may be schema changes since the |
|
|
# Delete the catalog database, since there may be schema changes since the |
|
|
# bootstrap executable was built |
|
|
# bootstrap executable was built |