Skip to content

Commit

Permalink
Merge pull request hummingbot#3148 from CoinAlpha/fix/binary-msvc-com…
Browse files Browse the repository at this point in the history
…piler-error

fix/ fix AttributeError MSVCCompiler when building Windows binary
  • Loading branch information
dennisocana authored Apr 2, 2021
2 parents 6ccb628 + 3e371c2 commit f4d99f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# for C/ObjC but not for C++
class BuildExt(build_ext):
def build_extensions(self):
if '-Wstrict-prototypes' in self.compiler.compiler_so:
if os.name != "nt" and '-Wstrict-prototypes' in self.compiler.compiler_so:
self.compiler.compiler_so.remove('-Wstrict-prototypes')
super().build_extensions()

Expand Down

0 comments on commit f4d99f1

Please sign in to comment.