aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter.py')
-rw-r--r--interpreter.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py
index c95c171..b9666d3 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -583,13 +583,20 @@ class SharedLibrary(BuildTarget):
return fname + '.' + self.version
def set_version(self, version):
+ if isinstance(version, nodes.StringStatement):
+ version = version.get_value()
if not isinstance(version, str):
+ print(version)
raise InvalidArguments('Shared library version is not a string.')
self.version = version
def set_soversion(self, version):
+ if isinstance(version, nodes.StringStatement) or isinstance(version, nodes.IntStatement):
+ version = version.get_value()
+ if isinstance(version, int):
+ version = str(version)
if not isinstance(version, str):
- raise InvalidArguments('Shared library soversion is not a string.')
+ raise InvalidArguments('Shared library soversion is not a string or integer.')
self.soversion = version
def get_aliaslist(self):