configurator: DEFAULT_{COMPILER, FLAGS} for MSVC
authorKevin Locke <kevin@kevinlocke.name>
Thu, 29 Sep 2016 00:44:46 +0000 (18:44 -0600)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 30 Sep 2016 03:51:27 +0000 (13:51 +1000)
commitf15904b683f12a3add9eaa8e34f73acbf790b85e
treebf64de9b78878dd0ab249accddaf358844897e92
parentaacc2cb8e22a369b910816dc41a6a411d29a12bb
configurator: DEFAULT_{COMPILER, FLAGS} for MSVC

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: Kevin Locke <kevin@kevinlocke.name>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tools/configurator/configurator.c