diff options
| author | Adam Vandenberg | 2010-08-09 21:03:29 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-09 21:03:29 -0700 |
| commit | 80c090aaaeefb0d573ec2c633795eba5b2a4a900 (patch) | |
| tree | f894eba7b8bf484c50be483ef35b0b64d627b030 /Library | |
| parent | 2a80303960af9ea1c8ac7b3313f9ff7f5e58fb62 (diff) | |
| download | brew-80c090aaaeefb0d573ec2c633795eba5b2a4a900.tar.bz2 | |
Remove redundent line and reword comments slightly.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index f668fb092..26ec2b719 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -23,19 +23,18 @@ module HomebrewEnvExtension xcode_path = "/Developer" if xcode_path.to_s.empty? ENV['CC'] = "#{xcode_path}/usr/bin/llvm-gcc" ENV['CXX'] = "#{xcode_path}/usr/bin/llvm-g++" - ENV['LD'] = ENV['CC'] cflags = ['-O4'] # link time optimisation baby! else - # if we don't set these, many formula fail to build + # If these aren't set, many formulae fail to build ENV['CC'] = '/usr/bin/cc' ENV['CXX'] = '/usr/bin/c++' cflags = ['-O3'] end - # in rare cases this may break your builds, as the tool for some reason wants - # to use a specific linker, however doing this in general causes formula to + # In rare cases this may break your builds, as the tool for some reason wants + # to use a specific linker. However doing this in general causes formula to # build more successfully because we are changing CC and many build systems - # don't react properly to that + # don't react properly to that. ENV['LD'] = ENV['CC'] # optimise all the way to eleven, references: @@ -72,7 +71,7 @@ module HomebrewEnvExtension ENV['CFLAGS'] = ENV['CXXFLAGS'] = "#{cflags*' '} #{SAFE_CFLAGS_FLAGS}" end - + def deparallelize remove 'MAKEFLAGS', /-j\d+/ end |
