Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
main
pyicu
Commits
1effb12c
Commit
1effb12c
authored
Jun 08, 2021
by
Andi Vajda
Browse files
fix --pedantic support
parent
a59906d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
1effb12c
...
...
@@ -114,6 +114,7 @@ else:
VER_FLAGS
=
[
ver_flag
%
(
'PYICU_VER'
,
VERSION
),
ver_flag
%
(
'PYICU_ICU_MAX_VER'
,
ICU_MAX_MAJOR_VERSION
)]
# added to CFLAGS when setup is invoked with --pedantic
PEDANTIC_FLAGS
=
{
'darwin'
:
[
'-pedantic'
],
'linux'
:
[
'-pedantic'
,
'-Wno-variadic-macros'
],
...
...
@@ -202,7 +203,11 @@ if '--debug' in sys.argv:
else
:
_cflags
+=
DEBUG_CFLAGS
[
platform
]
_cflags
+=
VER_FLAGS
# + PEDANTIC_FLAGS[platform]
if
'--pedantic'
in
sys
.
argv
:
sys
.
argv
.
remove
(
'--pedantic'
)
_cflags
+=
PEDANTIC_FLAGS
[
platform
]
_cflags
+=
VER_FLAGS
if
'PYICU_LFLAGS'
in
os
.
environ
:
_lflags
=
os
.
environ
[
'PYICU_LFLAGS'
].
split
(
os
.
pathsep
)
...
...
Write
Preview
Supports
Markdown
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