Skip to content

Commit

Permalink
Change to clang to avoid pybind11 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sablin39 committed Nov 20, 2024
1 parent f94bb66 commit c3dd06c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from setuptools import Extension, find_packages, setup
from setuptools.command.build_ext import build_ext

use_clang = False
use_clang = True

here = os.path.abspath(os.path.dirname(__file__))

Expand Down Expand Up @@ -97,7 +97,7 @@ def build_extension(self, ext):
build_args += ["--", "/m"]
else:
cmake_args += ["-DCMAKE_BUILD_TYPE=" + cfg]
build_args += ["--", "-j2"]
build_args += ["--", "-j8"]

env = os.environ.copy()
env["CXXFLAGS"] = '{} -DVERSION_INFO=\\"{}\\"'.format(env.get("CXXFLAGS", ""), self.distribution.get_version())
Expand Down

0 comments on commit c3dd06c

Please sign in to comment.