This commit modifies boost.rb to provide C++11 support for compiling Boost. The support is the simplest possible, adding a "with-c++11" option which if selected will add the appropriate toolset switch to the bootstrap.sh invocation and the appropriate toolset, cxxflags and linkflags to the b2 invocation. Due to a bug in Boost, it is also necessary to provide a patch (IAW Boost Ticket 7671) or C++11 compilation will fail.
ClosesHomebrew/homebrew#16078.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
* Fix typo in comment for adding rpath
* Enable detailed build log by adding "-d2" to bjam.
- This will show the actual compile commands during building.
* Tweak ICU handling
- Change icu4c_prefix to opt_prefix to avoid breakage when keg_only icu updates.
ClosesHomebrew/homebrew#15506.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
To be safe (because this is an important dep), mark 2335 as the failure
point since a 2335.x shipped with older Xcode. Given that Clang 2.1 is
one of Boost's test compilers, current Xcode compilers should be fine.
And most users will get the bottle, anyway.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit adds a `devel` entry to the DSL, allowing formulae to
specify an unstable branch.
`devel` takes a block, which should contain standard `url` and `md5`
fields (and `version`, if necessary). This must come after the standard
DSL fields.
This commit also migrates over all formulae currently using `devel` to
the new syntax, as well as formulae which used `head` for non-VCS urls.
The new syntax is also available for `stable` and `bottle`. `stable` is
an option alongside the old syntax. `bottle` replaces the old syntax.
Note that the @stable ivar in Formula has been renamed to @standard,
and the @bottle ivar has been renamed to @bottle_url.
ClosesHomebrew/homebrew#9735.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Do not set fails_with_llvm for XCode 4.1 and later, as according
to release notes LLVM compiler provided by it is now among primary
test compilers, LLVM-GCC is working too.
ClosesHomebrew/homebrew#6669.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm",
to specifically message to the user when a formula is known or suspected
to not build with LLVM. If the user specifies "--use-llvm", the message
will be displayed, but compilation will be tried anyway.
Since using LLVM is now an advanced/hidden feature instead of the
default on 10.6, we'll let the user try anyway (and submit patches
if things are now working.)