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

Fix and improve building with clang-cl #251

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on May 9, 2022

  1. graphene-macros.h: Fix build on clang-cl

    clang-cl does not like it if we try to check values of __GNUC__ without first
    checking whether it is defined, so fix things up here.  clang-cl defines
    _MSC_VER and __clang__ but not __GNUC__.
    fanc999-1 committed May 9, 2022
    Configuration menu
    Copy the full SHA
    5315d66 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2022

  1. meson.build: Update cflags for clang-cl

    clang-cl follows some of the compiler flags that are used for GCC, but not all
    them, so make sure that we don't try to use the compiler flags that it does not
    understand.
    
    Since the Visual Studio headers and libraries that clang-cl uses supported
    SSE 4.1 for a very long while, even before the inception of clang-cl, always
    pass in '-msse4.1' in the cflags when we are building with clang-cl (and it is
    needed, otherwise the build fails).
    fanc999-1 committed May 11, 2022
    Configuration menu
    Copy the full SHA
    ba33a42 View commit details
    Browse the repository at this point in the history
  2. meson.build: Silence deprecation warnings for clang-cl

    We can actually turn off the deprecation warnings from the Visual Studio
    headers that clang-cl uses, so let's do that.
    fanc999-1 committed May 11, 2022
    Configuration menu
    Copy the full SHA
    5e45896 View commit details
    Browse the repository at this point in the history
  3. SIMD: Use GCC codepath for clang-cl

    ...for SSE and ARM NEON intrinsics, since the __extension__ stuff is supported
    on clang-cl.  Update the error messages accordingly.
    fanc999-1 committed May 11, 2022
    Configuration menu
    Copy the full SHA
    fe79e8c View commit details
    Browse the repository at this point in the history