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

🐛 [ut] Source-file-location fails on macOS, giving unknown, Fix… #293

Merged
merged 1 commit into from
Jan 20, 2020

Conversation

kris-jusiak
Copy link
Contributor

#291

Problem:

  • On macOS, with both g++9 homebrew and clang-9 MacPorts the UT tests all fail with unknown.

Solution:

  • Fix detection of source location builtins.
    Use __has_builtin for clang based compilers.
    Enable it by default for GCC >= 9 (GCC HEAD has support for it).
    Disable it for MSVC which doesn't support these builtins yet.

Problem:
- On macOS, with both g++9 homebrew and clang-9 MacPorts the UT tests all fail with `unknown`.

Solution:
- Fix detection of `source location` builtins.
  Use `__has_builtin` for clang based compilers.
  Enable it by default for GCC >= 9 (GCC HEAD has support for it).
  Disable it for MSVC which doesn't support these builtins yet.
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.

1 participant