mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-11 15:44:26 +02:00
Add support for mingw-linux toolchains
This commit is contained in:
@@ -13,20 +13,25 @@ from platformio.util import get_systype
|
|||||||
env = DefaultEnvironment()
|
env = DefaultEnvironment()
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
SIZEPRINTCMD="size $SOURCES",
|
AR="$_MINGWPREFIX-ar",
|
||||||
|
AS="$_MINGWPREFIX-as",
|
||||||
|
CC="$_MINGWPREFIX-gcc",
|
||||||
|
CXX="$_MINGWPREFIX-g++",
|
||||||
|
OBJCOPY="$_MINGWPREFIX-objcopy",
|
||||||
|
RANLIB="$_MINGWPREFIX-ranlib",
|
||||||
|
SIZETOOL="$_MINGWPREFIX-size",
|
||||||
|
|
||||||
|
SIZEPRINTCMD='"$SIZETOOL" $SOURCES',
|
||||||
PROGSUFFIX=".exe"
|
PROGSUFFIX=".exe"
|
||||||
)
|
)
|
||||||
|
|
||||||
if get_systype() == "darwin_x86_64":
|
if get_systype() == "darwin_x86_64":
|
||||||
env.Replace(
|
env.Replace(
|
||||||
AR="i586-mingw32-ar",
|
_MINGWPREFIX="i586-mingw32"
|
||||||
AS="i586-mingw32-as",
|
)
|
||||||
CC="i586-mingw32-gcc",
|
elif get_systype() in ("linux_x86_64", "linux_i686"):
|
||||||
CXX="i586-mingw32-g++",
|
env.Replace(
|
||||||
OBJCOPY="i586-mingw32-objcopy",
|
_MINGWPREFIX="i686-w64-mingw32"
|
||||||
RANLIB="i586-mingw32-ranlib",
|
|
||||||
SIZETOOL="i586-mingw32-size",
|
|
||||||
SIZEPRINTCMD='"$SIZETOOL" $SOURCES'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user