Skip to content

Commit aa34fbb

Browse files
committed
Fix assembly compilation errors
1 parent f24c016 commit aa34fbb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/codelite.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,14 @@ def TargetCodelite(script, program):
196196

197197
CLSetCFlags(root, building.Env.get('CCFLAGS', []))
198198
CLSetCxxFlags(root, building.Env.get('CCFLAGS', []))
199-
CLSetAsFlags(root, building.Env.get('ASFLAGS', []))
199+
200+
asflags = building.Env.get('ASFLAGS', [])
201+
asflags = asflags.replace('-ffunction-sections', '')
202+
asflags = asflags.replace('-fdata-sections', '')
203+
asflags = asflags.replace('-x', '')
204+
asflags = asflags.replace('-Wa,', '')
205+
asflags = asflags.replace('assembler-with-cpp', '')
206+
CLSetAsFlags(root, asflags)
200207
CLSetLdFlags(root, building.Env.get('LINKFLAGS', []))
201208

202209
for macro in building.Env.get('CPPDEFINES', []):

0 commit comments

Comments
 (0)