|
|
@ -371,7 +371,7 @@ class CLikeCompiler: |
|
|
|
|
|
|
|
|
|
|
|
def run(self, code: str, env, *, extra_args=None, dependencies=None): |
|
|
|
def run(self, code: str, env, *, extra_args=None, dependencies=None): |
|
|
|
if self.is_cross and self.exe_wrapper is None: |
|
|
|
if self.is_cross and self.exe_wrapper is None: |
|
|
|
raise mesonlib.CrossNoRunException('Can not run test applications in this cross environment.') |
|
|
|
raise compilers.CrossNoRunException('Can not run test applications in this cross environment.') |
|
|
|
with self._build_wrapper(code, env, extra_args, dependencies, mode='link', want_output=True) as p: |
|
|
|
with self._build_wrapper(code, env, extra_args, dependencies, mode='link', want_output=True) as p: |
|
|
|
if p.returncode != 0: |
|
|
|
if p.returncode != 0: |
|
|
|
mlog.debug('Could not compile test file %s: %d\n' % ( |
|
|
|
mlog.debug('Could not compile test file %s: %d\n' % ( |
|
|
|