@@ 653-662 (lines=10) @@ | ||
650 | r = w.get_compiler_list() |
|
651 | opt = [] |
|
652 | for d in r: |
|
653 | if d['name'] == compiler: |
|
654 | if 'switches' in d: |
|
655 | switches = d['switches'] |
|
656 | for s in switches: |
|
657 | if 'name' in s: |
|
658 | opt.append(s['name']) |
|
659 | elif 'options' in s: |
|
660 | opt.append(s['default']) |
|
661 | for o in s['options']: |
|
662 | opt.append(o['name']) |
|
663 | return opt |
|
664 | ||
665 | ||
@@ 672-680 (lines=9) @@ | ||
669 | r = w.get_compiler_list() |
|
670 | opt = [] |
|
671 | for d in r: |
|
672 | if d['name'] == compiler: |
|
673 | if 'switches' in d: |
|
674 | switches = d['switches'] |
|
675 | for s in switches: |
|
676 | if 'name' in s: |
|
677 | if s['default']: |
|
678 | opt.append(s['name']) |
|
679 | elif 'options' in s: |
|
680 | opt.append(s['default']) |
|
681 | return opt |
|
682 | ||
683 |