Skip to content

Commit cc18379

Browse files
authored
Specify min MacOS SDK version (#1401)
[Improvement] Specify the minimum MacOS SDK version used by gcc to be 10.13
1 parent 29c8240 commit cc18379

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ def build_extension(self, ext):
158158
if "std=" not in os.environ.get("CXXFLAGS", ""):
159159
ext.extra_compile_args.append("-std=c++17")
160160
ext.extra_compile_args.append("-D_GLIBCXX_USE_CXX11_ABI=0")
161+
if sys.platform == "darwin":
162+
ext.extra_compile_args.append("-mmacosx-version-min=10.13")
161163

162164
ext.library_dirs.append(
163165
os.path.join(current_dir, self.build_lib, "snowflake", "connector")

0 commit comments

Comments
 (0)