Skip to content

Commit

Permalink
simple4
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 22, 2025
1 parent 5b1f255 commit e175fb0
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
FUZZING_BUILD = "LIB_FUZZING_ENGINE" in os.environ


DEBUG = False
DEBUG = True


class DependencyException(Exception):
Expand Down Expand Up @@ -225,20 +225,7 @@ def __iter__(self) -> Iterator[str]:

feature = ext_feature()

user_options = (
build_ext.user_options
+ [(f"disable-{x}", None, f"Disable support for {x}") for x in feature]
+ [(f"enable-{x}", None, f"Enable support for {x}") for x in feature]
+ [
(f"vendor-{x}", None, f"Use vendored version of {x}")
for x in ("raqm", "fribidi")
]
+ [
("disable-platform-guessing", None, "Disable platform guessing"),
("debug", None, "Debug logging"),
]
+ [("add-imaging-libs=", None, "Add libs to _imaging build")]
)
user_options = build_ext.user_options

@staticmethod
def check_configuration(option: str, value: str) -> bool | None:
Expand All @@ -264,9 +251,6 @@ def _update_extension(
extension.define_macros += define_macros
if sources is not None:
extension.sources += sources
if FUZZING_BUILD:
extension.language = "c++"
extension.extra_link_args = ["--stdlib=libc++"]
break

def _remove_extension(self, name: str) -> None:
Expand Down

0 comments on commit e175fb0

Please sign in to comment.