scons: Support Clang on Windows.
authorJose Fonseca <jfonseca@vmware.com>
Mon, 18 Apr 2016 15:55:44 +0000 (16:55 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Tue, 26 Apr 2016 16:17:00 +0000 (17:17 +0100)
commita2fe35bcdf3d383aaa5ad915b80630c8895d703d
tree7d4776b2d5c06ca48705ca37d930717b4606d152
parentdcc3baf7331f7cb920a73e0349a7622bfe46f647
scons: Support Clang on Windows.

- Introduce 'gcc_compat' env flag, for all compilers that define __GNUC__,
  (which includes Clang when it's not emulating MSVC.)

- Clang doesn't support whole program optimization

- Disable enumerator value warnings (not sure why Clang warns about them,
  as my understanding is that MSVC promotes enums to unsigned ints
  automatically.)

This is not enough to build with Clang + AddressSanitizer though.  More
follow up changes will be required for that.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
scons/gallium.py