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

dev-lang/ldc2::dlang: doesn't take -flto #855

Closed
wants to merge 3 commits into from

Conversation

mccarverone
Copy link

Please note: this concerns dlang overlay. I don't now about gentooLTO project policies in terms of overlays.

This commit fixes ldc2 D compiler. Tested both 1.29.0 and 1.30.0.
log.txt

Please note: this concerns dlang overlay. I don't now about gentooLTO project policies in terms of overlays.

This commit fixes ldc2 D compiler. Tested both 1.29.0 and 1.30.0.
portage-bashrc-mv appends LDFLAGS to CFLAGS and breaks D compilers. Needs NOCADD=1 set. As per portage-bashrc-mv documentation:

NOCADD
	If this variable is false and some of CFLAGS, CXXFLAGS, or LDFLAGS
	contains -flto* then the CFLAGS and CXXFLAGS variables finally
	calculated will be added to the LDFLAGS.
@mccarverone
Copy link
Author

Compiles just fine by just using -ffat-lto-objects.

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.

None yet

1 participant