summarylogtreecommitdiffstats
path: root/toolchain_generator.py
diff options
context:
space:
mode:
authorNicola Murino2020-11-04 19:10:06 +0100
committerNicola Murino2020-11-04 19:10:06 +0100
commit40b5144c3c011887f6ed09179e0928d6fec54b75 (patch)
tree4c7f2770c3968a5675ca23a734f5b1cfc26611b7 /toolchain_generator.py
parentf738247c821b57f3fc7839aa8f9f37de7de1515b (diff)
downloadaur-40b5144c3c011887f6ed09179e0928d6fec54b75.tar.gz
suppress warning with meson 0.56
Diffstat (limited to 'toolchain_generator.py')
-rwxr-xr-xtoolchain_generator.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/toolchain_generator.py b/toolchain_generator.py
index b9ebb5fcf867..d27550c7a173 100755
--- a/toolchain_generator.py
+++ b/toolchain_generator.py
@@ -24,6 +24,7 @@ class CrossFileGenerator:
config = configparser.ConfigParser()
config['binaries'] = self.get_binaries_section()
config['properties'] = self.get_properties_section()
+ config['built-in options'] = self.get_builtin_options_section()
config['host_machine'] = self.get_host_machine_section()
with open(self.output_file, 'w') as configfile:
config.write(configfile)
@@ -46,11 +47,14 @@ class CrossFileGenerator:
def get_properties_section(self):
return {'root':"'{}'".format(self.arch),
'sys_root':"'/usr/{}'".format(self.arch),
- 'c_args':[f for f in self.cflags.split(" ") if f],
+ 'needs_exe_wrapper':'true'
+ }
+
+ def get_builtin_options_section(self):
+ return {'c_args':[f for f in self.cflags.split(" ") if f],
'cpp_args':[f for f in self.cxxflags.split(" ") if f],
'c_link_args':[f for f in self.ldflags.split(" ") if f],
- 'cpp_link_args':[f for f in self.ldflags.split(" ") if f],
- 'needs_exe_wrapper':'true'
+ 'cpp_link_args':[f for f in self.ldflags.split(" ") if f]
}
def get_host_machine_section(self):