Add missing patch
This commit is contained in:
parent
b08d8b3a27
commit
1c4ad7a580
17
waflib-python38-pyembed.diff
Normal file
17
waflib-python38-pyembed.diff
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py
|
||||||
|
index 52a05c6..79836bb 100644
|
||||||
|
--- a/third_party/waf/waflib/Tools/python.py
|
||||||
|
+++ b/third_party/waf/waflib/Tools/python.py
|
||||||
|
@@ -338,7 +338,11 @@ def check_python_headers(conf, features='pyembed pyext'):
|
||||||
|
|
||||||
|
if 'pyembed' in features:
|
||||||
|
for flags in all_flags:
|
||||||
|
- conf.check_cfg(msg='Asking python-config for pyembed %r flags' % ' '.join(flags), path=env.PYTHON_CONFIG, package='', uselib_store='PYEMBED', args=flags)
|
||||||
|
+ embedflags = flags + ['--embed']
|
||||||
|
+ try:
|
||||||
|
+ conf.check_cfg(msg='Asking python-config for pyembed %r flags' % ' '.join(embedflags), path=env.PYTHON_CONFIG, package='', uselib_store='PYEMBED', args=embedflags)
|
||||||
|
+ except conf.errors.ConfigurationError:
|
||||||
|
+ conf.check_cfg(msg='Asking python-config for pyembed %r flags' % ' '.join(flags), path=env.PYTHON_CONFIG, package='', uselib_store='PYEMBED', args=flags)
|
||||||
|
|
||||||
|
try:
|
||||||
|
conf.test_pyembed(xx)
|
Loading…
Reference in New Issue
Block a user