Values for define_macros=
#4804
Unanswered
mdavidsaver
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For
Extension(defines_macros=[...], ...)
thedefines_macros
list is documented as accepting entries of the form('NAME','value')
and('NAME',None)
, which with GCC yield-DNAME=value
and-DNAME
respectively. I find that a third form('NAME',)
is accepted, yielding-UNAME
.This third form is redundant to the
undef_macros=[...]
list, with the added benefit of control over relative ordering, which is important as I have a situation where I want to pass-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
in this order to override the default value of that builtin macro.Is this third form considered supported? If not, can it be?
Beta Was this translation helpful? Give feedback.
All reactions