File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -69,16 +69,16 @@ def generate(self):
69
69
# get flags from toolchain and apply
70
70
project_data ['tool_specific' ]['uvision' ]['misc' ] = {}
71
71
# asm flags only, common are not valid within uvision project, they are armcc specific
72
- project_data ['tool_specific' ]['uvision' ]['misc' ]['asm_flags' ] = list (set (self .toolchain . flags [ 'asm ' ]))
72
+ project_data ['tool_specific' ]['uvision' ]['misc' ]['asm_flags' ] = list (set (self .progen_flags [ 'asm_flags ' ]))
73
73
# cxx flags included, as uvision have them all in one tab
74
- project_data ['tool_specific' ]['uvision' ]['misc' ]['c_flags' ] = list (set (self .toolchain . flags [ 'common ' ] + self .toolchain . flags [ 'c ' ] + self .toolchain . flags [ 'cxx ' ]))
74
+ project_data ['tool_specific' ]['uvision' ]['misc' ]['c_flags' ] = list (set (self .progen_flags [ 'common_flags ' ] + self .progen_flags [ 'c_flags ' ] + self .progen_flags [ 'cxx_flags ' ]))
75
75
# not compatible with c99 flag set in the template
76
76
project_data ['tool_specific' ]['uvision' ]['misc' ]['c_flags' ].remove ("--c99" )
77
77
# ARM_INC is by default as system inclusion, not required for exported project
78
78
project_data ['tool_specific' ]['uvision' ]['misc' ]['c_flags' ].remove ("-I \" " + ARM_INC + "\" " )
79
79
# cpp is not required as it's implicit for cpp files
80
80
project_data ['tool_specific' ]['uvision' ]['misc' ]['c_flags' ].remove ("--cpp" )
81
- project_data ['tool_specific' ]['uvision' ]['misc' ]['ld_flags' ] = self .toolchain . flags [ 'ld ' ]
81
+ project_data ['tool_specific' ]['uvision' ]['misc' ]['ld_flags' ] = self .progen_flags [ 'ld_flags ' ]
82
82
83
83
i = 0
84
84
for macro in project_data ['common' ]['macros' ]:
Original file line number Diff line number Diff line change @@ -69,16 +69,16 @@ def generate(self):
69
69
# get flags from toolchain and apply
70
70
project_data ['tool_specific' ]['uvision5' ]['misc' ] = {}
71
71
# asm flags only, common are not valid within uvision project, they are armcc specific
72
- project_data ['tool_specific' ]['uvision5' ]['misc' ]['asm_flags' ] = list (set (self .toolchain . flags [ 'asm ' ]))
72
+ project_data ['tool_specific' ]['uvision5' ]['misc' ]['asm_flags' ] = list (set (self .progen_flags [ 'asm_flags ' ]))
73
73
# cxx flags included, as uvision have them all in one tab
74
- project_data ['tool_specific' ]['uvision5' ]['misc' ]['c_flags' ] = list (set (self .toolchain . flags [ 'common ' ] + self .toolchain . flags [ 'c ' ] + self .toolchain . flags [ 'cxx ' ]))
74
+ project_data ['tool_specific' ]['uvision5' ]['misc' ]['c_flags' ] = list (set (self .progen_flags [ 'common_flags ' ] + self .progen_flags [ 'c_flags ' ] + self .progen_flags [ 'cxx_flags ' ]))
75
75
# ARM_INC is by default as system inclusion, not required for exported project
76
76
project_data ['tool_specific' ]['uvision5' ]['misc' ]['c_flags' ].remove ("-I \" " + ARM_INC + "\" " )
77
77
# not compatible with c99 flag set in the template
78
78
project_data ['tool_specific' ]['uvision5' ]['misc' ]['c_flags' ].remove ("--c99" )
79
79
# cpp is not required as it's implicit for cpp files
80
80
project_data ['tool_specific' ]['uvision5' ]['misc' ]['c_flags' ].remove ("--cpp" )
81
- project_data ['tool_specific' ]['uvision5' ]['misc' ]['ld_flags' ] = self .toolchain . flags [ 'ld ' ]
81
+ project_data ['tool_specific' ]['uvision5' ]['misc' ]['ld_flags' ] = self .progen_flags [ 'ld_flags ' ]
82
82
83
83
i = 0
84
84
for macro in project_data ['common' ]['macros' ]:
You can’t perform that action at this time.
0 commit comments