Skip to content
  • Jose Fonseca's avatar
    scons: Support Clang on Windows. · a2fe35bc
    Jose Fonseca authored
    
    
    - 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: default avatarRoland Scheidegger <sroland@vmware.com>
    Reviewed-by: default avatarBrian Paul <brianp@vmware.com>
    a2fe35bc