Skip to content

Commit d1db0f5

Browse files
committed
fix hatch_build.py for macos compatibility
1 parent d37c35c commit d1db0f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hatch_build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ def build_extensions(self):
3636
opts.append("/std:c++11")
3737

3838
for ext in self.extensions:
39-
ext.extra_compile_args = opts
39+
if ext.language == "c++":
40+
ext.extra_compile_args = opts
4041

4142
build_ext.build_extensions(self)
4243

0 commit comments

Comments
 (0)