Skip to content

Commit

Permalink
Use extra_compile_args for working aroung old agg code
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese authored Sep 10, 2024
1 parent 8c5cba4 commit bbed124
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ def _get_freetype_with_pkgconfig():
if sys.platform == "win32":
libraries.extend(["kernel32", "user32", "gdi32"])

# agg C++ is not compatible with gcc 14
extra_compile_args = ["-fpermissive"]

setup(
name="aggdraw",
version=VERSION,
Expand All @@ -165,7 +168,8 @@ def _get_freetype_with_pkgconfig():
Extension("aggdraw", ["aggdraw.cxx"] + sources,
define_macros=defines,
include_dirs=include_dirs,
library_dirs=library_dirs, libraries=libraries
library_dirs=library_dirs, libraries=libraries,
extra_compile_args=extra_compile_args,
)
],
python_requires='>=3.9',
Expand Down

0 comments on commit bbed124

Please sign in to comment.