Amaury Forgeot d'Arc  committed 0e04cf9

Add the "--cc" option to py.test
For example: --cc=mingw32

  • Participants
  • Parent commits 330fe35
  • Branches mingw32-build

Comments (0)

Files changed (1)

File pypy/

         raise ValueError("%s not in %s" % (value, PLATFORMS))
     set_platform(value, None)
+def _set_compiler(opt, opt_str, value, parser):
+    from pypy.translator.platform import set_platform
+    set_platform('host', value)
 def pytest_addoption(parser):
     group = parser.getgroup("pypy options")
     group.addoption('--view', action="store_true", dest="view", default=False,
     group.addoption('-P', '--platform', action="callback", type="string",
            default="host", callback=_set_platform,
            help="set up tests to use specified platform as compile/run target")
+    group.addoption('--cc', action="callback", type="string",
+           default="host", callback=_set_compiler,
+           help="set up tests to use specified compiler")
 def pytest_sessionstart():
     # have python subprocesses avoid startup customizations by default