Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the comment for the limitations of build.py script #4933

Merged
merged 1 commit into from
Sep 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ def gitclone(self, repo, tag, subdir, org):
else:
self.cmd(f'if [[ ! -e {clone_dir} ]]; then')

# FIXME [DLIS-4045 - Currently the tag starting with "pull/" is not
# working with "--repo-tag" as the option is not forwared to the
# individual repo build correctly.]
# If 'tag' starts with "pull/" then it must be of form
# "pull/<pr>/head". We just clone at "main" and then fetch the
# reference onto a new branch we name "tritonbuildref".
Expand Down Expand Up @@ -1559,12 +1562,15 @@ def cibase_build(cmake_script, repo_dir, cmake_dir, build_dir, install_dir,
cmake_script.mkdir(os.path.join(ci_dir, 'src', 'test'))
cmake_script.cpdir(os.path.join(repo_dir, 'src', 'test', 'models'),
os.path.join(ci_dir, 'src', 'test'))
cmake_script.cpdir(os.path.join(repo_install_dir, 'bin'), ci_dir)
cmake_script.mkdir(os.path.join(ci_dir, 'lib'))
cmake_script.cp(
os.path.join(repo_install_dir, 'lib',
'libtritonrepoagent_relocation.so'),
os.path.join(ci_dir, 'lib'))
# Skip copying the artifacts in the bin and lib as those directories will
# be missing when the core build is not enabled.
if not FLAGS.no_core_build:
cmake_script.cpdir(os.path.join(repo_install_dir, 'bin'), ci_dir)
cmake_script.mkdir(os.path.join(ci_dir, 'lib'))
cmake_script.cp(
os.path.join(repo_install_dir, 'lib',
'libtritonrepoagent_relocation.so'),
os.path.join(ci_dir, 'lib'))

# Some of the backends are needed for CI testing
cmake_script.mkdir(os.path.join(ci_dir, 'backends'))
Expand Down Expand Up @@ -1913,7 +1919,7 @@ def enable_all():
'--no-core-build',
action="store_true",
required=False,
help='Do not build Triton core sharead library or executable.')
help='Do not build Triton core shared library or executable.')
parser.add_argument(
'--backend',
action='append',
Expand All @@ -1926,7 +1932,7 @@ def enable_all():
action='append',
required=False,
help=
'The version of a component to use in the build as <component-name>:<repo-tag>. <component-name> can be "common", "core", "backend" or "thirdparty". If <repo-tag> starts with "pull/" then it refers to a pull-request reference, otherwise <repo-tag> indicates the git tag/branch. If the version is non-development then the default <repo-tag> is the release branch matching the container version (e.g. version YY.MM -> branch rYY.MM); otherwise the default <repo-tag> is "main" (e.g. version YY.MMdev -> branch main).'
'The version of a component to use in the build as <component-name>:<repo-tag>. <component-name> can be "common", "core", "backend" or "thirdparty". <repo-tag> indicates the git tag/branch to use for the build. Currently <repo-tag> does not support pull-request reference. If the version is non-development then the default <repo-tag> is the release branch matching the container version (e.g. version YY.MM -> branch rYY.MM); otherwise the default <repo-tag> is "main" (e.g. version YY.MMdev -> branch main).'
)
parser.add_argument(
'--repoagent',
Expand Down