Skip to content

Commit

Permalink
Cleanup build
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Oct 30, 2023
1 parent 5bd2ef0 commit 463cc08
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 463cc08

Please sign in to comment.