@@ -788,7 +788,7 @@ def __init__(self, generator_flags, flavor):
788
788
self .suffix_rules_objdir2 = {}
789
789
790
790
# Generate suffix rules for all compilable extensions.
791
- for ext in COMPILABLE_EXTENSIONS :
791
+ for ext , value in COMPILABLE_EXTENSIONS . items () :
792
792
# Suffix rules for source folder.
793
793
self .suffix_rules_srcdir .update (
794
794
{
@@ -797,7 +797,7 @@ def __init__(self, generator_flags, flavor):
797
797
$(obj).$(TOOLSET)/$(TARGET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD
798
798
\t @$(call do_cmd,%s,1)
799
799
"""
800
- % (ext , COMPILABLE_EXTENSIONS [ ext ] )
800
+ % (ext , value )
801
801
)
802
802
}
803
803
)
@@ -810,7 +810,7 @@ def __init__(self, generator_flags, flavor):
810
810
$(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD
811
811
\t @$(call do_cmd,%s,1)
812
812
"""
813
- % (ext , COMPILABLE_EXTENSIONS [ ext ] )
813
+ % (ext , value )
814
814
)
815
815
}
816
816
)
@@ -821,7 +821,7 @@ def __init__(self, generator_flags, flavor):
821
821
$(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
822
822
\t @$(call do_cmd,%s,1)
823
823
"""
824
- % (ext , COMPILABLE_EXTENSIONS [ ext ] )
824
+ % (ext , value )
825
825
)
826
826
}
827
827
)
@@ -1779,13 +1779,13 @@ def WriteTarget(
1779
1779
# using ":=".
1780
1780
self .WriteSortedXcodeEnv (self .output , self .GetSortedXcodePostbuildEnv ())
1781
1781
1782
- for configname in target_postbuilds :
1782
+ for configname , value in target_postbuilds . items () :
1783
1783
self .WriteLn (
1784
1784
"%s: TARGET_POSTBUILDS_%s := %s"
1785
1785
% (
1786
1786
QuoteSpaces (self .output ),
1787
1787
configname ,
1788
- gyp .common .EncodePOSIXShellList (target_postbuilds [ configname ] ),
1788
+ gyp .common .EncodePOSIXShellList (value ),
1789
1789
)
1790
1790
)
1791
1791
0 commit comments