Skip to content

Commit

Permalink
Updated to simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pvicente committed Feb 24, 2018
1 parent 85a181f commit 5b7b94d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conans/client/conf/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ def _get_default_compiler(output):
command = cc or cxx
if "gcc" in command:
gcc = _gcc_compiler(output, command)
if gcc is not None:
return gcc
if platform.system() == "Darwin":
if platform.system() == "Darwin" and gcc is None:
output.warn(
"%s detected as a frontend using apple-clang, skipping it to use native apple-clang" % command
)
# using clang instead
# Fallback to use clang instead
command = "clang"
else:
return gcc
if "clang" in command.lower():
return _clang_compiler(output, command)
if platform.system() == "SunOS" and command.lower() == "cc":
Expand Down

0 comments on commit 5b7b94d

Please sign in to comment.