Merge pull request #228 from dandedrick/thumb-fix
rust: don't configure thumb if not in TUNE_FEATURES
This commit is contained in:
@@ -78,10 +78,11 @@ def llvm_features_from_tune(d):
|
|||||||
if 'dsp' in feat:
|
if 'dsp' in feat:
|
||||||
f.append("+dsp")
|
f.append("+dsp")
|
||||||
|
|
||||||
if d.getVar('ARM_THUMB_OPT') is "thumb":
|
if 'thumb' in feat:
|
||||||
if not feat.isdisjoint(v7):
|
if d.getVar('ARM_THUMB_OPT') is "thumb":
|
||||||
f.append("+thumb2")
|
if not feat.isdisjoint(v7):
|
||||||
f.append("+thumb-mode")
|
f.append("+thumb2")
|
||||||
|
f.append("+thumb-mode")
|
||||||
|
|
||||||
if 'cortexa5' in feat:
|
if 'cortexa5' in feat:
|
||||||
f.append("+a5")
|
f.append("+a5")
|
||||||
|
|||||||
Reference in New Issue
Block a user