Misty De Meo
c58d707158
Allow building bottles with custom architectures
...
This allows overriding the "oldest CPU" behaviour - for instance, to
build Intel bottles for a newer CPU than Core 2, to build a PPC bottle
with or without Altivec on the same computer, etc.
2013-08-28 20:21:06 -07:00
Jack Nagel
77056dc5cd
Simplify condition
2013-08-26 22:11:29 -05:00
Jack Nagel
9e8638ea35
Only perform coercion to string once in ENV.{append,prepend}
2013-08-26 15:03:37 -05:00
Misty De Meo
f0bf64e1e9
superenv: support PPC bottles
...
Allows for building bottles on PPC both with and without Altivec.
This is currently not active but will be enabled once superenv is
stable on Leopard.
2013-08-25 14:51:48 -07:00
Jack Nagel
84369dd949
Always pass -headerpad_max_install_names to the linker
...
We use install_name_tool pretty liberally, so we need to take steps to
ensure libraries and executables are always linked with this flag.
Closes Homebrew/homebrew#20233 .
Fixes Homebrew/homebrew#17984 .
Fixes Homebrew/homebrew#22078 .
2013-08-23 11:36:03 -05:00
Misty De Meo
3cf3fa7d8f
superenv: fix CC value for ENV.gcc
...
'gcc' could refer to anything of llvm-gcc, clang, or gcc-4.0 on
various Xcode versions.
2013-08-22 22:42:54 -07:00
Jack Nagel
4a3dac82ef
Use ENV.prepend_path
2013-08-19 17:21:13 -05:00
Jack Nagel
ea8f51256b
Use ENV.append_path
2013-08-19 17:21:13 -05:00
Jack Nagel
b672b44cf9
Add ENV.append_path
2013-08-19 17:21:13 -05:00
Jack Nagel
b8bac2ba53
Fix typo
2013-08-19 14:07:14 -05:00
Amos Wenger
52ace99f14
Use File::PATH_SEPARATOR globally instead of ':'
...
On Unix, the path separator is ':', whereas on Windows,
it is ';'. This is the first of a series of patch to bring
macbrew's and winbrew's codebases closer together.
The main places the magic constant ':' was being used were:
- the $PATH environment variable
- CMAKE-related environment variables
- pkg-config related environment variables
Closes Homebrew/homebrew#21921 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-08-19 13:35:44 -05:00
Jack Nagel
cec8d74239
Remove ENV.expand_xcrun
...
This method is currently unused and after inspecting the git history, it
appears it may never have been used at all.
2013-08-19 12:34:14 -05:00
Jack Nagel
e0574b854e
More robust implementation of ENV.with_build_environment
2013-08-19 12:32:59 -05:00
Jack Nagel
dd9c269c69
Rename HomebrewEnvExtension to Stdenv
2013-08-19 12:32:59 -05:00
Jack Nagel
9a5b15bb61
Move common ENV methods to a shared module
2013-08-19 12:32:59 -05:00
Jack Nagel
cc18f5e0c4
Move superenv.rb to extend/ENV/super.rb
2013-08-19 12:32:59 -05:00