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-cxx] Add COMPILABLE_MATH_TEST test directive to tests that import std.math #11060

Merged
merged 1 commit into from
Apr 26, 2020

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Apr 26, 2020

Same as #11056, but this is to catch targets that don't have real support in std.math (e.g: PPC/PPC64 IBM long doubles).

In master, either we need to remove the static assert that checks mant_dig. Or we add complete support for IBM long doubles. Splitting off std.math into a package may come first though...

@ibuclaw ibuclaw added GDC Gnu D Compiler Trivial typos, formatting, comments C++ Port labels Apr 26, 2020
@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 "dmd-cxx + dmd#11060"

@ibuclaw
Copy link
Member Author

ibuclaw commented Apr 26, 2020

Merging.

@ibuclaw ibuclaw merged commit ed14f47 into dlang:dmd-cxx Apr 26, 2020
@ibuclaw ibuclaw deleted the dmd-cxx-math branch April 26, 2020 12:17
kraj pushed a commit to kraj/gcc that referenced this pull request Apr 27, 2020
Adds a new test directive COMPILABLE_MATH_TEST, and support has been
added for it in gdc-convert-test so that they are skipped if phobos is
not present on the target.

Only change in D runtime is a small documentation fix.

Reviewed-on: dlang/druntime#3067
	     dlang/dmd#11060

gcc/testsuite/ChangeLog:

	PR d/89418
	* lib/gdc-utils.exp (gdc-convert-test): Add dg-skip-if for compilable
	tests that depend on the phobos standard library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge C++ Port GDC Gnu D Compiler Trivial typos, formatting, comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants