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-dmd-rewrite.sh: Exclude new lib/ package in compiler source #4766

Merged
merged 1 commit into from
Oct 6, 2024
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
6 changes: 6 additions & 0 deletions tools/update-dmd-rewrite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ set -euxo pipefail
#
# Afterwards, merging a new frontend+druntime is a matter of merging branch
# `dmd-rewrite-stable` or some tag (`dmd-rewrite-v2.101.0`).
#
# NOTE: As it turns out, the rewrite unfortunately isn't stable across git versions.
# This process was started on Ubuntu 22, using git v2.34 and git-filter-repo v2.34 (22826b5a68b6).
# On Ubuntu 24 (git v2.43), this fails (to fast-forward push) with both default git-filter-repo v2.38 (ed61b4050b71) and v2.34.
# So you might need to use a Ubuntu 22 container for now to run this script successfully.

initialize="${INITIALIZE:-0}" # set INITIALIZE=1 for the very first rewrite
refs_prefix="dmd-rewrite-"
Expand Down Expand Up @@ -50,6 +55,7 @@ git filter-repo --invert-paths \
--path-regex '(compiler/)?src/dmd/frontend\.d' \
--path-regex '(compiler/)?src/dmd/scan(elf|mach|mscoff|omf)\.d' \
--path-regex '(compiler/)?src/dmd/lib(|elf|mach|mscoff|omf)\.d' \
--path 'compiler/src/dmd/lib/' \
--path-regex '(compiler/)?src/dmd/link\.d' \
--path-regex '(compiler/)?src/dmd/(e|s)2ir\.d' \
--path-regex '(compiler/)?src/dmd/to(csym|ctype|cvdebug|dt|ir|obj)\.d' \
Expand Down
Loading