Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
bffece4a
Commit
bffece4a
authored
Jun 11, 2017
by
Adrien Guinet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Pythran compilation options from the pythran module
parent
65da9d1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
Cython/Build/Dependencies.py
Cython/Build/Dependencies.py
+15
-2
No files found.
Cython/Build/Dependencies.py
View file @
bffece4a
...
...
@@ -863,8 +863,21 @@ def cythonize(module_list, exclude=None, nthreads=0, aliases=None, quiet=False,
if
np_pythran
:
c_file
=
base
+
'.cpp'
options
=
pythran_options
m
.
include_dirs
.
append
(
pythran_include_dir
)
m
.
extra_compile_args
.
extend
((
'-std=c++11'
,
'-DENABLE_PYTHON_MODULE'
,
'-D__PYTHRAN__'
))
pythran_ext
=
pythran
.
config
.
make_extension
()
m
.
include_dirs
.
extend
(
pythran_ext
[
'include_dirs'
])
m
.
extra_compile_args
.
extend
(
pythran_ext
[
'extra_compile_args'
])
m
.
extra_link_args
.
extend
(
pythran_ext
[
'extra_link_args'
])
m
.
define_macros
.
extend
(
pythran_ext
[
'define_macros'
])
m
.
undef_macros
.
extend
(
pythran_ext
[
'undef_macros'
])
m
.
library_dirs
.
extend
(
pythran_ext
[
'library_dirs'
])
m
.
libraries
.
extend
(
pythran_ext
[
'libraries'
])
# These options are not compatible with the way normal Cython plugins work
try
:
m
.
extra_compile_args
.
remove
(
"-fwhole-program"
)
except
ValueError
:
pass
try
:
m
.
extra_compile_args
.
remove
(
"-fvisibility=hidden"
)
except
ValueError
:
pass
m
.
language
=
'c++'
elif
m
.
language
==
'c++'
:
c_file
=
base
+
'.cpp'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment