|
|
|
@ -970,8 +970,7 @@ class NinjaBackend(backends.Backend): |
|
|
|
|
if self.environment.is_llvm_ir(src): |
|
|
|
|
o, s = self.generate_llvm_ir_compile(target, src) |
|
|
|
|
else: |
|
|
|
|
o, s = self.generate_single_compile(target, src, True, |
|
|
|
|
order_deps=header_deps) |
|
|
|
|
o, s = self.generate_single_compile(target, src, True, order_deps=header_deps) |
|
|
|
|
compiled_sources.append(s) |
|
|
|
|
source2object[s] = o |
|
|
|
|
obj_list.append(o) |
|
|
|
@ -1018,7 +1017,7 @@ class NinjaBackend(backends.Backend): |
|
|
|
|
# Passing 'vala' here signifies that we want the compile |
|
|
|
|
# arguments to be specialized for C code generated by |
|
|
|
|
# valac. For instance, no warnings should be emitted. |
|
|
|
|
o, s = self.generate_single_compile(target, src, 'vala', [], header_deps) |
|
|
|
|
o, s = self.generate_single_compile(target, src, True, [], header_deps) |
|
|
|
|
obj_list.append(o) |
|
|
|
|
|
|
|
|
|
# Generate compile targets for all the preexisting sources for this target |
|
|
|
@ -2908,7 +2907,7 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485''')) |
|
|
|
|
return src_type_to_args |
|
|
|
|
|
|
|
|
|
def generate_single_compile(self, target: build.BuildTarget, src, |
|
|
|
|
is_generated=False, header_deps=None, |
|
|
|
|
is_generated: bool = False, header_deps=None, |
|
|
|
|
order_deps: T.Optional[T.List['mesonlib.FileOrString']] = None, |
|
|
|
|
extra_args: T.Optional[T.List[str]] = None, |
|
|
|
|
unity_sources: T.Optional[T.List[mesonlib.FileOrString]] = None) -> None: |
|
|
|
|