diff options
author | Tim Smith <tsmith@chef.io> | 2017-01-20 13:53:58 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-01-20 13:53:58 -0800 |
commit | c86936346a9f370c1f55f35094cd8abd8292c05a (patch) | |
tree | 8d81deea2f91f363d79f79390e043377b89daabe | |
parent | 174849c60911ff7c24714a130c3adc97484a0896 (diff) | |
download | ohai-c86936346a9f370c1f55f35094cd8abd8292c05a.tar.gz |
Don't check CC on Darwin
CC is clang on Darwin and the output is different so this just fails
every time. We *should* add clang checks at some point though.
-rw-r--r-- | lib/ohai/plugins/c.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ohai/plugins/c.rb b/lib/ohai/plugins/c.rb index c8d9f689..ae032645 100644 --- a/lib/ohai/plugins/c.rb +++ b/lib/ohai/plugins/c.rb @@ -147,10 +147,7 @@ Ohai.plugin(:C) do collect_data(:darwin) do c = Mash.new - if xcode_installed? - collect_gcc - collect_cc - end + collect_gcc if xcode_installed? languages[:c] = c unless c.empty? end |