@@ -788,7 +788,7 @@ def __init__(self, generator_flags, flavor):
788788 self .suffix_rules_objdir2 = {}
789789
790790 # Generate suffix rules for all compilable extensions.
791- for ext in COMPILABLE_EXTENSIONS :
791+ for ext , value in COMPILABLE_EXTENSIONS . items () :
792792 # Suffix rules for source folder.
793793 self .suffix_rules_srcdir .update (
794794 {
@@ -797,7 +797,7 @@ def __init__(self, generator_flags, flavor):
797797 $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD
798798\t @$(call do_cmd,%s,1)
799799"""
800- % (ext , COMPILABLE_EXTENSIONS [ ext ] )
800+ % (ext , value )
801801 )
802802 }
803803 )
@@ -810,7 +810,7 @@ def __init__(self, generator_flags, flavor):
810810 $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD
811811\t @$(call do_cmd,%s,1)
812812"""
813- % (ext , COMPILABLE_EXTENSIONS [ ext ] )
813+ % (ext , value )
814814 )
815815 }
816816 )
@@ -821,7 +821,7 @@ def __init__(self, generator_flags, flavor):
821821 $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
822822\t @$(call do_cmd,%s,1)
823823"""
824- % (ext , COMPILABLE_EXTENSIONS [ ext ] )
824+ % (ext , value )
825825 )
826826 }
827827 )
@@ -1779,13 +1779,13 @@ def WriteTarget(
17791779 # using ":=".
17801780 self .WriteSortedXcodeEnv (self .output , self .GetSortedXcodePostbuildEnv ())
17811781
1782- for configname in target_postbuilds :
1782+ for configname , value in target_postbuilds . items () :
17831783 self .WriteLn (
17841784 "%s: TARGET_POSTBUILDS_%s := %s"
17851785 % (
17861786 QuoteSpaces (self .output ),
17871787 configname ,
1788- gyp .common .EncodePOSIXShellList (target_postbuilds [ configname ] ),
1788+ gyp .common .EncodePOSIXShellList (value ),
17891789 )
17901790 )
17911791
0 commit comments