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

AUR package with LTO & PGO enabled #183

Closed
jondegenhardt opened this issue Nov 11, 2018 · 2 comments
Closed

AUR package with LTO & PGO enabled #183

jondegenhardt opened this issue Nov 11, 2018 · 2 comments

Comments

@jondegenhardt
Copy link
Contributor

@wilzbach Hi Seb,

It's great to have tsv-utils available via a package manager distribution, but it's been a while since it's been updated. Could you update it when you get a chance?

There's another reason for doing it now. With the 1.3.1 tsv-utils release it should be possible to build the AUR package using LTO & PGO using LDC as shipped. There is no longer a need to use the ldc-build-runtime tool, that's as of LDC 1.9.0 and later. This was the issue when you put together the first version of the AUR package (#98).

tsv-utils 1.3.1 now supports building with the LTO compiled druntime/phobos libs. That enables PGO also. To build this way:

make DCOMPILER=ldc2 LDC_LTO_RUNTIME=1 LDC_PGO=2

I've tested this on a couple of ubuntu versions, but not on ArchLinux. The test suite is pretty easy to run. After the above build line run:

make test-nobuild DCOMPILER=ldc2

It'd be great if you got a chance to do this. I don't know if there are other package manager distributions shipping with LDC's LTO enabled, but it'd be nice to get have some examples to point to. Homebrew is another example where this form of LTO build would be more consistent with their build policies, as there is no file download when building.

@jondegenhardt
Copy link
Contributor Author

Closing for now and dropping from the README (#209 ). The AUR package is still at 1.1.15, released nearly 18 months ago. Can re-examine this when the AUR package is updated to a more recent version.

@jondegenhardt
Copy link
Contributor Author

The AUR package has been updated to the current version (1.4.1). See #210. We'll still leave the topic of an LTO/PGO build for another time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant