diff options
author | Christoph Behle <behlec@gmail.com> | 2018-06-10 17:37:33 +0200 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-06-12 00:14:54 +0000 |
commit | ce27dd3aee842cb7348c9d07a5b4bbf786e2b5a9 (patch) | |
tree | 971c98fde6e199b98ed2b24d4f3cecdb7903ab4b /mesonbuild/compilers/c.py | |
parent | 8ef4216f01fd470a0fd1a9446b30b993f32dd88c (diff) | |
download | meson-ce27dd3aee842cb7348c9d07a5b4bbf786e2b5a9.zip meson-ce27dd3aee842cb7348c9d07a5b4bbf786e2b5a9.tar.gz meson-ce27dd3aee842cb7348c9d07a5b4bbf786e2b5a9.tar.bz2 |
Revert change
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r-- | mesonbuild/compilers/c.py | 4 |
1 files changed, 2 insertions, 2 deletions
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': |