Skip to content
Unverified Commit c6d6f4c5 authored by Paul Burton's avatar Paul Burton
Browse files

MIPS: Always specify -EB or -EL when using clang



When building using clang, always specify -EB or -EL in order to ensure
we target the desired endianness.

Since clang cross compiles using a single compiler build with multiple
targets, our -dumpmachine tests which don't specify clang's --target
argument check output based upon the build machine rather than the
machine our build will target. This means our detection of whether to
specify -EB fails miserably & we never do. Providing the endianness flag
unconditionally for clang resolves this issue & simplifies the clang
path somewhat.

Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
parent 36dc5b20
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment