Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 1 | Lets use cached result for this otherwise runtime test, on qemuppc64 |
| 2 | when this test is run using gcc11, it returns 1, since we dont worry |
| 3 | about older compilers here, we can cache the result and use it here |
| 4 | |
| 5 | Upstream-Status: Inappropriate [Cross-compile specific] |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | --- a/SConstruct |
| 8 | +++ b/SConstruct |
| 9 | @@ -3904,7 +3904,7 @@ def doConfigure(myenv): |
| 10 | |
| 11 | conf.AddTest('CheckAltivecVbpermqOutput', CheckAltivecVbpermqOutput) |
| 12 | |
| 13 | - outputIndex = next((idx for idx in [0,1] if conf.CheckAltivecVbpermqOutput(idx)), None) |
| 14 | + outputIndex = 1 |
| 15 | if outputIndex is not None: |
| 16 | conf.env.SetConfigHeaderDefine("MONGO_CONFIG_ALTIVEC_VEC_VBPERMQ_OUTPUT_INDEX", outputIndex) |
| 17 | else: |