[compiler-rt][cmake][powerpc] Remove TEST_BIG_ENDIAN from base-config-ix.cmake
authorDavid Tenty <daltenty@ibm.com>
Wed, 30 Sep 2020 15:13:20 +0000 (11:13 -0400)
committerDavid Tenty <daltenty@ibm.com>
Thu, 1 Oct 2020 13:45:07 +0000 (09:45 -0400)
commit5665ec4e182dba9965847d3698ad64a950bb00a7
tree6097106908fcd7f56cd89b0ada31edbf53d28d00
parent567049f89282d10ec2e82ea21e239fb0174a0ee1
[compiler-rt][cmake][powerpc] Remove TEST_BIG_ENDIAN from base-config-ix.cmake

It's actually not safe to call TEST_BIG_ENDIAN here, since we may be
running from the builtins build (i.e builtins-config-ix) context where
TEST_COMPILE_ONLY  is set since without builtins already built we may
fail to link, and TEST_BIG_ENDIAN internally performs tests which may
fail to link without builtins.

Fortunately powerpc is the only target that uses this information here and
we actually already know the whether we are targeting the LE variant due
to earlier macro checks, so we can simply this to remove our reliance on
TEST_BIG_ENDIAN.

Reviewed By: hubert.reinterpretcast, Whitney

Differential Revision: https://reviews.llvm.org/D88608
compiler-rt/cmake/base-config-ix.cmake