diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-08-25 01:29:16 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-08-25 01:29:16 +0300 |
| commit | cd97f7a768fafc3ff9372e2559df1850c9ab7898 (patch) | |
| tree | d3260b420b0e6ab7f2805d99a4f7c207e26a6440 /compilers.py | |
| parent | bd5b4deeda8703b6ed5abbca0ef3662493e0784a (diff) | |
| download | meson-cd97f7a768fafc3ff9372e2559df1850c9ab7898.tar.gz | |
Give sanity test binaries different names. Also expose project version to modules.
Diffstat (limited to 'compilers.py')
| -rw-r--r-- | compilers.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compilers.py b/compilers.py index 2b24aea6e..134edda22 100644 --- a/compilers.py +++ b/compilers.py @@ -227,7 +227,11 @@ class CCompiler(): mlog.debug('Is cross compiler: %s.' % str(self.is_cross)) source_name = os.path.join(work_dir, 'sanitycheckc.c') - binary_name = os.path.join(work_dir, 'sanitycheckc') + if self.is_cross: + binname = 'sanitycheckc_cross' + else: + binname = 'sanitycheckc' + binary_name = os.path.join(work_dir, binname) ofile = open(source_name, 'w') ofile.write('int main(int argc, char **argv) { int class=0; return class; }\n') ofile.close() |
