setup.py: enable c99 mode with gnu extensions
Apparently this is needed on certain old gcc versions, but does fine on newer ones. No clue why.
This commit is contained in:
1
setup.py
1
setup.py
@@ -298,6 +298,7 @@ class CustomBuildExt(build_ext):
|
|||||||
e.extra_compile_args.append("-Wdeclaration-after-statement")
|
e.extra_compile_args.append("-Wdeclaration-after-statement")
|
||||||
e.extra_compile_args.append("-Werror=declaration-after-statement")
|
e.extra_compile_args.append("-Werror=declaration-after-statement")
|
||||||
e.extra_compile_args.append("-O3")
|
e.extra_compile_args.append("-O3")
|
||||||
|
e.extra_compile_args.append("-std=gnu99")
|
||||||
|
|
||||||
|
|
||||||
# build in place, and in the build/ tree
|
# build in place, and in the build/ tree
|
||||||
|
|||||||
Reference in New Issue
Block a user