From ce27dd3aee842cb7348c9d07a5b4bbf786e2b5a9 Mon Sep 17 00:00:00 2001 From: Christoph Behle Date: Sun, 10 Jun 2018 17:37:33 +0200 Subject: Revert change --- mesonbuild/compilers/c.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index 1bc4dfd..6145574 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import subprocess, os.path, ast +import subprocess, os.path from .. import mlog from .. import coredata @@ -569,7 +569,7 @@ class CCompiler(Compiler): # Get the preprocessed value after the delimiter, # minus the extra newline at the end and # merge string literals. - return ast.literal_eval(p.stdo.split(delim + '\n')[-1][:-1]) + return p.stdo.split(delim + '\n')[-1][:-1] def get_return_value(self, fname, rtype, prefix, env, extra_args, dependencies): if rtype == 'string': -- cgit v1.1