craftr.ext.platform

This module represents the current platform that Craftr is running on by importing the correct implementation based on sys.platform. Be sure to check out the Platform Interface documentation.

Platform C/C++ Toolset

craftr.ext.platform.asm

The Assembler retrieved with platform.get_tool()

craftr.ext.platform.cc

The C compiler retrieved with platform.get_tool()

craftr.ext.platform.cxx

The C++ compiler retrieved with platform.get_tool()

craftr.ext.platform.ld

The linker retrieved with platform.get_tool()

craftr.ext.platform.ar

The archiver retrieved with platform.get_tool()

Constants

craftr.ext.platform.WIN32 = 'win'

Windows platform name

craftr.ext.platform.DARWIN = 'mac'

Mac OS platform name

craftr.ext.platform.LINUX = 'linux'

Linux platform name

craftr.ext.platform.CYGWIN = 'cygwin'

Cygwin platform name