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

Add remill and gap portfiles #950

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a60d907
ports: Add remill port.
xlauko May 18, 2022
c585288
ports: Add gap library.
xlauko May 18, 2022
2371c3c
ports: Add remill port features.
xlauko May 20, 2022
8796ce4
ports: Fix remill features.
xlauko May 20, 2022
79cbb7d
ports: Fix redundent remill debug paths.
xlauko May 24, 2022
c0daa4a
ports: Update remill config paths.
xlauko May 24, 2022
86d7c5c
ports: Update gap port file configs.
xlauko May 24, 2022
adce86a
ports: Don't build gap tests.
xlauko May 24, 2022
9e3add9
ports: Remove empty lib folder from gap port.
xlauko May 24, 2022
ca5dbec
ports: Add zlib to remill dependencies.
xlauko May 24, 2022
d30a83e
ports: Fix config install paths.
xlauko May 25, 2022
839ba4e
ports: Bump up remill port.
xlauko May 26, 2022
44e45e8
Various fixes
ekilmer Jun 8, 2022
c7b613e
ports: bump up gap version
xlauko Jul 14, 2022
e2c32b1
Fix usage file
ekilmer Jul 29, 2022
a3d9751
ports: bump up gap port
xlauko Aug 3, 2022
7c8412e
ports: bump up remill
xlauko Aug 8, 2022
6814704
ports: Bump remill.
lkorenc Jun 23, 2023
8a6507f
ports: bump up default llvm version to 16 for remill
xlauko Jun 24, 2023
18adef4
vcpkg: bump up remill portfile hash
xlauko Jun 24, 2023
dbc72e0
ports: bump up remill version decription
xlauko Jun 27, 2023
1965d3a
Improve port upgrading experience (#1027)
ekilmer Jul 11, 2023
2984768
Combine unknown attrs annotate and attr type attrs (#1028)
PappasBrent Jul 18, 2023
fe68818
Drop llvm-15 + ubuntu 20.04 and more (#1029)
Ninja3047 Aug 2, 2023
6db35b8
gap: bump up portfile
xlauko Sep 15, 2023
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
Prev Previous commit
Next Next commit
Improve port upgrading experience (#1027)
Only upgrade ports that are specified. Also, ask the user if they're sure they want to upgrade.

It should prevent accidentally deleting/rebuilding LLVM if it's out of date or if trying to upgrade a port it depends on.
ekilmer authored and xlauko committed Sep 15, 2023
commit 1965d3a99e071388a75315ee0cdf0edc0f5eb777
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -128,6 +128,8 @@ See [the vcpkg docs](https://github.com/microsoft/vcpkg/blob/master/docs/example

Installing additional dependencies will not update any existing dependencies by default. We do not update/upgrade by default because this could cause unexpected rebuilds that could potentially take hours (in the case of LLVM). To update dependencies, pass the `--upgrade-ports` option to the build script along with the respective options affecting vcpkg triplet selection (like `--release`).

You must specify the exact package/ports you want to upgrade. If the port does not exist, this will fail.

## Useful manual vcpkg commands

Sometimes it is useful to run vcpkg commands manually for testing a single package. Ideally, someone who wants to do this would read the [vcpkg documentation](https://github.com/microsoft/vcpkg/tree/master/docs), but below we list some commonly used commands. Inspecting the output of the build script will also show all of the vcpkg commands executed.
17 changes: 13 additions & 4 deletions build_dependencies.sh
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@ while [[ $# -gt 0 ]] ; do
esac
shift
done
msg "Passing extra args to 'vcpkg install':"
msg "Passing extra args to vcpkg:"
msg " " "${VCPKG_ARGS[@]}"

function die_if_not_installed {
@@ -237,10 +237,19 @@ if [[ ${UPGRADE_PORTS} == "true" ]]; then
cd "${repo_dir}"
(
set -x
# shellcheck disable=SC2046
"${vcpkg_dir}/vcpkg" upgrade "${extra_vcpkg_args[@]}" "${overlays[@]}" --no-dry-run --allow-unsupported
"${vcpkg_dir}/vcpkg" upgrade "${extra_vcpkg_args[@]}" "${overlays[@]}" --allow-unsupported "${VCPKG_ARGS[@]}" || true

set +x
read -p "Are you sure? If so, enter 'y' " -n 1 -r
echo ""
if [[ $REPLY =~ ^[Yy]$ ]]
then
set -x
"${vcpkg_dir}/vcpkg" upgrade "${extra_vcpkg_args[@]}" "${overlays[@]}" --no-dry-run --allow-unsupported "${VCPKG_ARGS[@]}" || exit 1
fi
)
) || exit 1
)
exit 0
fi

deps=()