Skip to content

Commit c0a5f95

Browse files
authored
Merge pull request #160 from karcherm/allow-triplet-gcc
Use gcc-specific _compile method for triplet-gcc as well
2 parents c6d25ad + 49caf20 commit c0a5f95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def c_compile(obj, src, ext, cc_args, extra_postargs, pp_opts):
3737
cc_args = cc_args + ["-std=c99"] if src.endswith(".c") else cc_args
3838
return _compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
3939

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

4344
elif self.compiler.compiler_type == "msvc":

0 commit comments

Comments
 (0)