Skip to content

Commit

Permalink
setup.py uses Clang instead of GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZCG-coder committed Jun 16, 2024
1 parent b73ac00 commit 334a67b
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 @@ -61,8 +61,8 @@ def build_extension(self, ext: CMakeExtension) -> None:
# auxiliary "native" libs

debug = int(os.environ.get("DEBUG", 0)) if self.debug is None else self.debug
cxx_compiler = os.environ.get("CMAKE_CXX_COMPILER", "g++")
c_compiler = os.environ.get("CMAKE_C_COMPILER", "gcc")
cxx_compiler = os.environ.get("CMAKE_CXX_COMPILER", "clang++")
c_compiler = os.environ.get("CMAKE_C_COMPILER", "clang")
cmake_options = os.environ.get("CMAKE_OPTIONS", "")
cfg = "Debug" if debug else "Release"

Expand Down

0 comments on commit 334a67b

Please sign in to comment.