Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def c_compile(obj, src, ext, cc_args, extra_postargs, pp_opts):
cc_args = cc_args + ["-std=c99"] if src.endswith(".c") else cc_args
return _compile(obj, src, ext, cc_args, extra_postargs, pp_opts)

if c.compiler_type == "unix" and "gcc" in c.compiler:
if c.compiler_type == "unix" and \
any(item == "gcc" or item.endswith("-gcc") for item in c.compiler):
c._compile = c_compile

elif self.compiler.compiler_type == "msvc":
Expand Down
Loading