File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,10 @@ def flags(self):
105
105
config_header = self .toolchain .get_config_header ()
106
106
flags = {key + "_flags" : copy .deepcopy (value ) for key , value
107
107
in self .toolchain .flags .iteritems ()}
108
- asm_defines = ["-D" + symbol for symbol in self .toolchain .get_symbols (True )]
108
+ asm_defines = self .toolchain .get_compile_options (
109
+ self .toolchain .get_symbols (for_asm = True ),
110
+ filter (None , self .resources .inc_dirs ),
111
+ for_asm = True )
109
112
c_defines = ["-D" + symbol for symbol in self .toolchain .get_symbols ()]
110
113
flags ['asm_flags' ] += asm_defines
111
114
flags ['c_flags' ] += c_defines
Original file line number Diff line number Diff line change @@ -1356,6 +1356,25 @@ def get_config_option(self, config_header):
1356
1356
"""
1357
1357
raise NotImplemented
1358
1358
1359
+ @abstractmethod
1360
+ def get_compile_options (self , defines , includes , for_asm = False ):
1361
+ """Generate the compiler options from the defines and includes
1362
+
1363
+ Positional arguments:
1364
+ defines -- The preprocessor macros defined on the command line
1365
+ includes -- The include file search paths
1366
+
1367
+ Keyword arguments:
1368
+ for_asm -- generate the assembler options instead of the compiler options
1369
+
1370
+ Return value:
1371
+ A list of the command line arguments that will force the inclusion the specified header
1372
+
1373
+ Side effects:
1374
+ None
1375
+ """
1376
+ raise NotImplemented
1377
+
1359
1378
@abstractmethod
1360
1379
def assemble (self , source , object , includes ):
1361
1380
"""Generate the command line that assembles.
You can’t perform that action at this time.
0 commit comments