Skip to content

[stable] druntime: Reduce intra-druntime dependencies for array-appending hook - #14912

Merged
dlang-bot merged 1 commit into
dlang:stablefrom
kinke:array_append_deps
Feb 25, 2023
Merged

dlang-bot merged 1 commit into
dlang:stablefrom
kinke:array_append_deps

Conversation

@kinke

@kinke kinke commented Feb 25, 2023 •

Copy link
Copy Markdown
Contributor

This is important for CTFE-string-appending etc. for targets without proper druntime support, such as WebAssembly.

See ldc-developers/ldc#4324 for an exemplary breakage caused by the hook addition in D v2.101, rendering dub totally unusable for such targets.

In particular, skip all the -profile=gc stuff when not using that cmdline option.

This is important for CTFE-string-appending etc. for targets without
proper druntime support, such as WebAssembly.

See ldc-developers/ldc#4324 for an examplary
breakage caused by the hook addition in D v2.101, rendering dub
totally unusable for such targets.

In particular, skip all the `-profile=gc` stuff when not using that
cmdline option.
@dlang-bot

Copy link
Copy Markdown

Thanks for your pull request and interest in making D better, @kinke! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "stable + dmd#14912"

@kinke

kinke commented Feb 25, 2023

Copy link
Copy Markdown
Contributor Author

@kinke
kinke marked this pull request as ready for review February 25, 2023 02:07
@kinke
kinke deleted the array_append_deps branch February 25, 2023 14:09
kinke added a commit to kinke/dmd that referenced this pull request Feb 25, 2023
…ofile=gc

Analogous to dlang#14912, and covered by druntime/test/profile/src/profilegc.d
too.
thewilsonator pushed a commit that referenced this pull request Feb 25, 2023
… `-profile=gc` (#14914)

* druntime: Only define _d_arraysetlengthTTrace when compiling with -profile=gc

Analogous to #14912, and covered by druntime/test/profile/src/profilegc.d
too.

* druntime: Guard more stuff behind `version (D_ProfileGC)`

Keeping the templated hooks lean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants