aboutsummaryrefslogtreecommitdiff
path: root/compilers.py
diff options
context:
space:
mode:
Diffstat (limited to 'compilers.py')
-rw-r--r--compilers.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/compilers.py b/compilers.py
index 2b24aea..134edda 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()