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

Split global.params.hdrStripPlainFunctions from useInline #5733

Merged
merged 1 commit into from
May 6, 2016

Conversation

dnadlinger
Copy link
Member

As discussed in the original PR that added the feature (#945), DMD currently
triggers two entirely unrelated features with the -inline switch. Since LDC
does not really have an equivalent to that switch in the first place, but
users still want to control the emission of function bodies, we need to be
control it separately.

For DMD, global.params.hdrStripPlainFunctions is always set to
!global.params.useInline in the driver to match the current behavior.

Ping @yebblies.

As discussed in the original PR that added the feature (dlang#945), DMD currently
triggers two entirely unrelated features with the -inline switch. Since LDC
does not really have an equivalent to that switch in the first place, but
users still want to control the emission of function bodies, we need to be
able to control it separately.

For DMD, global.params.hdrStripPlainFunctions is always set to
!global.params.useInline in the driver to match the current behavior.
@yebblies
Copy link
Member

yebblies commented May 6, 2016

Auto-merge toggled on

@yebblies yebblies merged commit 855db01 into dlang:master May 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants