Merge pull request #228 from dandedrick/thumb-fix

rust: don't configure thumb if not in TUNE_FEATURES
This commit is contained in:
Steven Walter
2019-01-16 11:48:54 -05:00
committed by GitHub
+5 -4
View File
@@ -78,10 +78,11 @@ def llvm_features_from_tune(d):
if 'dsp' in feat:
f.append("+dsp")
if d.getVar('ARM_THUMB_OPT') is "thumb":
if not feat.isdisjoint(v7):
f.append("+thumb2")
f.append("+thumb-mode")
if 'thumb' in feat:
if d.getVar('ARM_THUMB_OPT') is "thumb":
if not feat.isdisjoint(v7):
f.append("+thumb2")
f.append("+thumb-mode")
if 'cortexa5' in feat:
f.append("+a5")