From 463cc08dc197a3294a37769249c699a73c5fb77a Mon Sep 17 00:00:00 2001 From: Chris Sellers Date: Mon, 30 Oct 2023 21:34:50 +1100 Subject: [PATCH] Cleanup build --- build.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/build.py b/build.py index 2c0a4f25b881..fadb30ce09a4 100644 --- a/build.py +++ b/build.py @@ -48,9 +48,6 @@ # Use clang as the default compiler os.environ["CC"] = "clang" os.environ["LDSHARED"] = "clang -shared" -# elif platform.system() == "Windows": -# os.environ["CC"] = "cl" -# os.environ["CXX"] = "cl" TARGET_DIR = Path.cwd() / "nautilus_core" / "target" / BUILD_MODE @@ -146,15 +143,8 @@ def _build_extensions() -> list[Extension]: extra_compile_args = [] extra_link_args = RUST_LIBS - if platform.system() == "Darwin": - extra_compile_args.append("-Wno-unreachable-code-fallthrough") - extra_link_args.append("-flat_namespace") - extra_link_args.append("-undefined") - extra_link_args.append("suppress") - if platform.system() != "Windows": # Suppress warnings produced by Cython boilerplate - extra_compile_args.append("-Wno-parentheses-equality") extra_compile_args.append("-Wno-unreachable-code") if BUILD_MODE == "release": extra_compile_args.append("-O2")