Fix assembly compilation errors

This commit is contained in:
mx 2020-11-07 12:09:48 +08:00
parent f24c016c90
commit aa34fbb142
1 changed files with 8 additions and 1 deletions

View File

@ -196,7 +196,14 @@ def TargetCodelite(script, program):
CLSetCFlags(root, building.Env.get('CCFLAGS', [])) CLSetCFlags(root, building.Env.get('CCFLAGS', []))
CLSetCxxFlags(root, building.Env.get('CCFLAGS', [])) CLSetCxxFlags(root, building.Env.get('CCFLAGS', []))
CLSetAsFlags(root, building.Env.get('ASFLAGS', []))
asflags = building.Env.get('ASFLAGS', [])
asflags = asflags.replace('-ffunction-sections', '')
asflags = asflags.replace('-fdata-sections', '')
asflags = asflags.replace('-x', '')
asflags = asflags.replace('-Wa,', '')
asflags = asflags.replace('assembler-with-cpp', '')
CLSetAsFlags(root, asflags)
CLSetLdFlags(root, building.Env.get('LINKFLAGS', [])) CLSetLdFlags(root, building.Env.get('LINKFLAGS', []))
for macro in building.Env.get('CPPDEFINES', []): for macro in building.Env.get('CPPDEFINES', []):