Fix Yocto cross-compiles

Yocto defines it's compilers in the environment complete with some arch flags.
For example:

```
CC="arm-poky-linux-gnueabi-gcc \
  -march=armv7-a \
  -mfloat-abi=hard \
  -mfpu=neon \
  -mtune=cortex-a9 \
  --sysroot=/home/ubuntu/device/build/tmp/sysroots/pico-imx6"
```

The SConstruct file would fail to find the compiler because it was calling
python's subprocess.check_output which expects the first argument of the list
to be _only_ the name of the executable.

This patch allows the SConstruct script to check the version of the compiler
even with funny environment variables. Instead of appending to the compiler
string and passing `shell=True` to subprocess, split `env['CXX']` into an array
and append `-dumpversion` to that array. Python warns against the use of
`shell=True` in subprocess calls.
1 file changed
tree: 67f3762165010a18deb8f6287504a42978b6aeb5
  1. arm_compute/
  2. data/
  3. docs/
  4. documentation/
  5. examples/
  6. include/
  7. opencl-1.2-stubs/
  8. src/
  9. tests/
  10. utils/
  11. .clang-format
  12. documentation.xhtml
  13. LICENSE
  14. README.md
  15. SConscript
  16. SConstruct
README.md

Please report issues here: https://github.com/ARM-software/ComputeLibrary/issues

Related projects:

Documentation available here:

Binaries available here:

Support: developer@arm.com

License & Contributions: The software is provided under MIT license. Contributions to this project are accepted under the same license.