Changes to use response files(pass includes in a file)

pull/9888/head
Senthil Ramakrishnan 2019-02-27 19:28:35 -06:00 committed by Senthil Ramakrishnan
parent 7ced0683ad
commit 96c74d4dce
1 changed files with 6 additions and 1 deletions

View File

@ -503,8 +503,13 @@ class ARMC6(ARM_STD):
return ["-include", config_header]
def get_compile_options(self, defines, includes, for_asm=False):
opts = ['-D%s' % d for d in defines]
opts.extend(["-I%s" % i for i in includes if i])
if self.RESPONSE_FILES:
opts += ['@{}'.format(self.get_inc_file(includes))]
else:
opts += ["-I%s" % i for i in includes if i]
config_header = self.get_config_header()
if config_header:
opts.extend(self.get_config_option(config_header))