Enable __MINGW_FORCE_SYS_INTRINS for Clang

See https://github.com/msys2/CLANG-packages/issues/6 for the details

The intrin.h header tries to define types like e.g. __m64
if __MMX__ isn't defined. With Clang, mmintrin.h does define such
a type even if __MMX__ isn't defined (and mmintrin.h is included
implicitly via x86intrin.h).

This fixes including intrin.h if building with Clang with -march=i686,
which makes __MMX__ not be defined.

Signed-off-by: Martin Storsjö <martin@martin.st>

Bug: 405855167
Change-Id: I4aa3ec235f95dc780b2f730d7620d1f770b75893
1 file changed
tree: 3b54fe2d7432edfe9f77f99d3f007b0b4f69f6a0
  1. mingw-w64-v6.x/
  2. build.sh
  3. README.md
  4. README.version
README.md

Building Mingw for Android

The build.sh script in this directory is used to build mingw for Android.

Mingw is built from the mingw branch of AOSP. To fetch the sources:

repo init -u https://android.googlesource.com/platform/manifest -b mingw

# Googlers, use
repo init -u \
    persistent-https://android.git.corp.google.com/platform/manifest -b mingw

To build, run build.sh. Run with --help for a list of options.