瀏覽代碼

Fix assembly compilation errors

mx 4 年之前
父節點
當前提交
aa34fbb142
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      tools/codelite.py

+ 8 - 1
tools/codelite.py

@@ -196,7 +196,14 @@ def TargetCodelite(script, program):
         
         CLSetCFlags(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', []))
         
         for macro in building.Env.get('CPPDEFINES', []):