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

dmd.mars: Add method to predefine FreeBSD_12 at compile-time. #11982

Merged
merged 1 commit into from Nov 19, 2020

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Nov 19, 2020

This allows to statically set which version of FreeBSD to compile for using DFLAGS, choices are FreeBSD 10, 11 or 12. If unset, the default is to use the same version as the host, or fallback to version 11 if compiling on a different host, or using an old D compiler to build DMD.

To be decided is whether there should be a dynamic way of detecting the FreeBSD OS version as well, such as by using getosreldate().

Small reboot of the stalled PR #8567

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

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 "master + dmd#11982"

@ibuclaw ibuclaw force-pushed the freebsd12 branch 2 times, most recently from 0429e42 to 1b17b11 Compare November 19, 2020 20:30
This allows to statically set which version of FreeBSD to compile for
using DFLAGS, choices are FreeBSD 10, 11 or 12. If unset, the default is
to use the same version as the host, or fallback to version 11 if
compiling on a different host, or using an old D compiler to build DMD.

To be decided is whether there should be a dynamic way of detecting the
FreeBSD OS version as well, such as by using getosreldate().
@dlang-bot dlang-bot merged commit 646d834 into dlang:master Nov 19, 2020
@ibuclaw ibuclaw deleted the freebsd12 branch November 20, 2020 00:11
@@ -71,6 +71,7 @@ task:
timeout_in: 60m
environment:
OS_NAME: freebsd
CI_DFLAGS: -version=TARGET_FREEBSD12
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea why dmd fails to compile with src/core/checkedint.d(691): Error: divide by zero if DFLAGS is exported in the environment.

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