aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compilers.py6
-rw-r--r--interpreter.py1
2 files changed, 6 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()
diff --git a/interpreter.py b/interpreter.py
index 559c561..f5b81a4 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -699,6 +699,7 @@ class ModuleHolder(InterpreterObject):
state.subdir = self.interpreter.subdir
state.environment = self.interpreter.environment
state.project_name = self.interpreter.build.project_name
+ state.project_version = self.interpreter.build.project_version
state.compilers = self.interpreter.build.compilers
state.targets = self.interpreter.build.targets
state.headers = self.interpreter.build.get_headers()