#11680: support extra_compile_args (e.g., C99) when loading/attaching .pyx
(cython)
files, and when using %cython in the notebook
---------------------------+------------------------------------------------
Reporter: was | Owner: jason
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.7.2
Component: misc | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
---------------------------+------------------------------------------------
Comment(by leif):
In addition to
{{{
#!python
#clang C99
}}}
I could imagine having
{{{
#!python
#coptions keyword1 keyword2 keyword3
}}}
which are then mapped to the appropriate flags and passed to their
respective component (`cython`, the C or C++ compiler, or the linker).
This should be quite flexible, since changes to the flags effectively used
(e.g for different compilers or compiler versions) would be limited to
`sage.misc.cython*`.
[[BR]]
I don't know if we'd in addition need something like
{{{
#!python
#cpragma "CFLAGS" "-D_XPG6 --some-very-rare-and-specific-options
another_argument"
#cpragma "LDFLAGS" "-L/unusual/location"
}}}
etc.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11680#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.