@@ -140,17 +140,26 @@ def get_config_option(self, config_header):
140
140
141
141
def get_compile_options (self , defines , includes , for_asm = False ):
142
142
opts = ['-D%s' % d for d in defines ]
143
- config_header = self .get_config_header ()
144
- if config_header is not None :
145
- opts = opts + self .get_config_option (config_header )
146
- if for_asm :
143
+ if for_asm :
144
+ config_macros = self .config .get_config_data_macros ()
145
+ macros_cmd = ['"-D%s"' % d .replace ('"' , '' ) for d in config_macros ]
146
+ if self .RESPONSE_FILES :
147
+ via_file = self .make_option_file (
148
+ macros_cmd , "asm_macros_{}.xcl" )
149
+ opts += ['-f' , via_file ]
150
+ else :
151
+ opts += macros_cmd
147
152
return opts
148
- if self .RESPONSE_FILES :
149
- opts += ['-f' , self .get_inc_file (includes )]
150
153
else :
151
- opts += ["-I%s" % i for i in includes ]
154
+ if self .RESPONSE_FILES :
155
+ opts += ['-f' , self .get_inc_file (includes )]
156
+ else :
157
+ opts += ["-I%s" % i for i in includes ]
158
+ config_header = self .get_config_header ()
159
+ if config_header is not None :
160
+ opts = opts + self .get_config_option (config_header )
152
161
153
- return opts
162
+ return opts
154
163
155
164
@hook_tool
156
165
def assemble (self , source , object , includes ):
0 commit comments