diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-29 14:28:26 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-29 14:28:26 +0100 |
commit | c14d0372283abc1b857e38517e791447233e4d62 (patch) | |
tree | 49898523b9ffd620aefe08737e280240133e1285 /tests | |
parent | 508ec4aadbee562eee69bd8d6db24d35f05352ea (diff) | |
download | gobject-introspection-c14d0372283abc1b857e38517e791447233e4d62.tar.gz |
ccompiler: don't use Python compiler flags. Fixes #150
Only use flags provided by env vars from the user and never from the
Python sysconfig. The sysconfig values depend on the way Python was built,
might conflict when using g-i with a different compiler and can't be controlled
by the g-i user.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/test_ccompiler.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/scanner/test_ccompiler.py b/tests/scanner/test_ccompiler.py index 4a136d6a..ac50e245 100644 --- a/tests/scanner/test_ccompiler.py +++ b/tests/scanner/test_ccompiler.py @@ -191,7 +191,6 @@ class UnixCCompilerTest(unittest.TestCase): args = self.preprocess_args() self.assertIn('-I.', args) - @unittest.skip("Currently Python build time CPPFLAGS are included as well") def test_preprocess_command(self): """"Checks complete preprocessing command.""" args = self.preprocess_args(environ=dict(CPP='gcc -E'), @@ -199,7 +198,6 @@ class UnixCCompilerTest(unittest.TestCase): self.assertEqual(['gcc', '-E', '-I.', '-C', '/tmp/file.c'], args) - @unittest.skip("Currently Python build time CFLAGS and CPPFLAGS are included as well") def test_compile_command(self): """Checks complete compilation command.""" args = self.compile_args(environ=dict(CC='clang'), |