• Kevin Locke's avatar
    configurator: DEFAULT_{COMPILER, FLAGS} for MSVC · f15904b6
    Kevin Locke authored
    When compiling with Visual Studio, use default compiler name and flags
    which are likely to work with the known-available compiler.
    
    This is also a convenience for users who may not know what arguments
    cl.exe may need to compile the tests.
    
    Changes since v1:
    - Use "-option" instead of "/option" to avoid issues running under msys.
    - Disable C4200 warning for use of flexible array members, which MSVC
      considers an extension (since it does not fully support C99).
    Signed-off-by: default avatarKevin Locke <kevin@kevinlocke.name>
    Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
    f15904b6
configurator.c 22 KB