amd/addrlib: define endianess differently
This removes a Mesa-specific change. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9668>
This commit is contained in:
parent
1d69c0419b
commit
3616e02ef3
|
@ -54,6 +54,13 @@ files_addrlib = files(
|
|||
|
||||
# Skip the addrlib definition of ADDR_FASTCALL so as not to use regparm.
|
||||
cpp_args_addrlib = ['-DADDR_FASTCALL=']
|
||||
|
||||
if host_machine.endian() == 'little'
|
||||
cpp_args_addrlib += '-DLITTLEENDIAN_CPU'
|
||||
else
|
||||
cpp_args_addrlib += '-DBIGENDIAN_CPU'
|
||||
endif
|
||||
|
||||
foreach w : ['-Wno-unused-variable', '-Wno-unused-local-typedefs',
|
||||
'-Wno-unused-but-set-variable', '-Wno-maybe-uninitialized']
|
||||
if cpp.has_argument(w)
|
||||
|
|
|
@ -46,15 +46,6 @@
|
|||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
#include "util/macros.h"
|
||||
#include "util/u_endian.h"
|
||||
|
||||
#if UTIL_ARCH_LITTLE_ENDIAN
|
||||
#define LITTLEENDIAN_CPU
|
||||
#elif UTIL_ARCH_BIG_ENDIAN
|
||||
#define BIGENDIAN_CPU
|
||||
#endif
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Platform specific debug break defines
|
||||
|
|
Loading…
Reference in New Issue