From cd97f7a768fafc3ff9372e2559df1850c9ab7898 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 25 Aug 2015 01:29:16 +0300 Subject: Give sanity test binaries different names. Also expose project version to modules. --- compilers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'compilers.py') 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() -- cgit v1.2.3