mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix dumping data for IDE with excess -fPIC flag
This commit is contained in:
@ -213,14 +213,15 @@ def DumpIDEData(env):
|
|||||||
)
|
)
|
||||||
return defines
|
return defines
|
||||||
|
|
||||||
|
LINTCCOM = "$CFLAGS $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS"
|
||||||
|
LINTCXXCOM = "$CXXFLAGS $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS"
|
||||||
env_ = env.Clone()
|
env_ = env.Clone()
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
"defines": get_defines(env_),
|
"defines": get_defines(env_),
|
||||||
"includes": get_includes(env_),
|
"includes": get_includes(env_),
|
||||||
"cc_flags": env_.subst("$SHCFLAGS $SHCCFLAGS $CPPFLAGS $_CPPDEFFLAGS"),
|
"cc_flags": env_.subst(LINTCCOM),
|
||||||
"cxx_flags": env_.subst(
|
"cxx_flags": env_.subst(LINTCXXCOM),
|
||||||
"$SHCXXFLAGS $SHCCFLAGS $CPPFLAGS $_CPPDEFFLAGS"),
|
|
||||||
"cxx_path": where_is_program(
|
"cxx_path": where_is_program(
|
||||||
env_.subst("$CXX"), env_.subst("${ENV['PATH']}"))
|
env_.subst("$CXX"), env_.subst("${ENV['PATH']}"))
|
||||||
}
|
}
|
||||||
@ -238,9 +239,8 @@ def DumpIDEData(env):
|
|||||||
env_.Replace(CPPDEFINES=_new_defines)
|
env_.Replace(CPPDEFINES=_new_defines)
|
||||||
|
|
||||||
data.update({
|
data.update({
|
||||||
"cc_flags": env_.subst("$SHCFLAGS $SHCCFLAGS $CPPFLAGS $_CPPDEFFLAGS"),
|
"cc_flags": env_.subst(LINTCCOM),
|
||||||
"cxx_flags": env_.subst(
|
"cxx_flags": env_.subst(LINTCXXCOM)
|
||||||
"$SHCXXFLAGS $SHCCFLAGS $CPPFLAGS $_CPPDEFFLAGS")
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
Reference in New Issue
Block a user