diff options
| author | mx <[email protected]> | 2020-11-07 12:09:48 +0800 |
|---|---|---|
| committer | mx <[email protected]> | 2020-11-07 12:09:48 +0800 |
| commit | aa34fbb1425e33a1d0f3fc337c1b59bdb0ef3e7c (patch) | |
| tree | 11da39c873e46457cc65f3f23462f967af20cd84 /tools/codelite.py | |
| parent | f24c016c90d7a0ab2339a63d1075f2be70c86a42 (diff) | |
Fix assembly compilation errors
Diffstat (limited to 'tools/codelite.py')
| -rw-r--r-- | tools/codelite.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/codelite.py b/tools/codelite.py index d6fb2d892b..9b2060dfa5 100644 --- a/tools/codelite.py +++ b/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', []): |
