Commit Graph
55 Commits
Author SHA1 Message Date
Xiyue Deng 2a2fd4367e Fix option description that only Clang library is built.
* Also fix an annoyance in caveats (llvm3* -> llvm*).

Closes #22247.
2013-09-01 12:57:42 -07:00
Xiyue Deng 215cbbc78f More tweaks for llvm.
* Port more changes from llvm formulae of homebrew-versions.
  - Don't install Clang tools.
* Remove all man pages.
  - Currently only clang.1 is available, and we don't ship clang binary
    in core.
2013-08-29 00:46:09 -07:00
Xiyue Deng 9e4c2092fe Simplify llvm formula.
* Stop shipping most binaries except llvm-config. Now llvm is supposed to be
  used as a library only.
* Add caveat to point user to homebrew-versions for full featured llvms.
2013-08-21 01:11:04 -07:00
Misty De Meo 450456caf3 Use Hardware::CPU.universal_archs in formulae 2013-08-15 22:46:57 -07:00
Mike McQuaid c4cc4ccee4 llvm 3.3 bottles 2013-06-21 16:34:33 +01:00
Mike McQuaid 1f1c7369c6 llvm 3.3
Closes #20593.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-06-21 16:33:58 +01:00
Mike McQuaid f8f4ca10a3 llvm: update bottle to include dylibs.
Closes #20652.
2013-06-21 09:56:28 +01:00
Samuel John 0b50110107 Python 2.x and 3.x support
New `depends_on :python` Dependency.
New `depends_on :python3` Dependency.

To avoid having multiple formulae with endings -py2 and -py3,
we will handle support for different pythons (2.x vs. 3.x)
in the same formula.
Further brewed vs. external python will be transparently supported.

The formula also gets a new object `python`, which is false if
no Python is available or the user has disabled it. Otherwise
it is defined and provides several support methods:

python.site_packages # the site-packages in the formula's Cellar
python.global_site_packages
python.binary # the full path to the python binary
python.prefix
python.version
python.version.major
python.version.minor
python.xy # => e.g. "python2.7"
python.incdir # includes of python
python.libdir # the python dylib library
python.pkg_config_path # used internally by brew
python.from_osx?
python.framework?
python.universal?
python.pypy?
python.standard_caveats # Text to set PYTHONPATH for python.from_osx?
python.if3then3 # => "" for 2.x and to "3" for 3.x.

Further, to avoid code duplication, `python` takes an optional
block that is run twice if the formula defines depends_on
:python AND :python3.

python do
  system python, 'setup.py', "--prefix=#{prefix}"
end

Read more in the Homebrew wiki.
2013-06-03 17:29:43 +02:00
Myles Borins 3e7aaa1ec6 llvm: fix universal and enable universal+shared builds
Closes #19822.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-14 18:25:55 -05:00
Mike McQuaid 06637f58c6 llvm: update bottle 2013-03-03 23:34:07 +00:00
Elliot Saba 40e9b90393 llvm: option to build without assertions.
Closes #16449.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-02 14:10:43 -08:00
John Wiegley dd8b5b2c2e llvm: add support for building Clang with ASan
Closes #17039.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-31 10:29:53 -08:00
Mike McQuaid cbf2eef883 llvm: update bottles. 2012-12-22 01:22:24 +00:00
Stefan b7edb67120 llvm 3.2
Closes #16692.
Closes #16698.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-12-22 01:22:24 +00:00
nibbles 2bits 7d15192b9e llvm: run make install for clang too
llvm takes a second make install in the clang_dir when clang
is built according to the install instructions in the clang
tarball.  Doing this gets all the clang include files installed
that were otherwise missing.  Add a `make install`.

Fixes #14924

Closes #15046.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-21 18:14:30 -07:00
Elliot Saba c6dee78220 llvm: fix syntax error from commit 576b9fae06
Closes #14183.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14 13:54:32 -05:00
Jack Nagel 576b9fae06 llvm: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13 10:55:17 -05:00
Mike McQuaid d5e1483603 llvm: remove unnecessary option functions. 2012-08-11 10:42:42 +01:00
Robert Lenhardt f93da5f415 llvm: update to 3.1 and cleanup options
- remove --jit, enabled by default
- call only make install
- directory with python bindings is copied to share folder
- remove --analyzer option, scan-build and scan-view are copied to
  share/clang/tools folder instead of installing in bin
- remove old patch to Makefile

Closes #13895.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-08-11 10:42:20 +01:00
Jack Nagel 8022bf4dc0 Fix more quoting issues
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 17:08:57 -05:00
Adam Vandenberg 78de146651 Remove redundant :using specs 2012-04-19 21:06:00 -07:00
Mike McQuaid af528aba40 Add LLVM Snow Leopard bottle.
Requested in #10848.
2012-03-23 06:59:49 +13:00
Mike McQuaid 74957bcbb2 Add LLVM test. 2012-03-23 06:19:39 +13:00
Mike McQuaid 4f6b546684 Add LLVM bottle.
Requested in #10848.
2012-03-23 06:04:54 +13:00
Jeremy Voorhis f66bc9bd15 Fix LLVM recipe
Fixed a regression where the definition of clang_dir was removed.

Closes #10515.

Signed-off-by: Max Howell <max@methylblue.com>

Modified patch so clang_dir is a function rather than a variable.
2012-02-28 20:13:16 +00:00
Adam Vandenberg 8bf54c485c Add buildpath to Formula 2012-02-24 21:35:51 -08:00
Adam Vandenberg d3f3554299 Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
2012-02-24 21:35:50 -08:00
Charlie Sharpsteen c246ee22c1 LLVM: Disable OCaml bindings by default
The build attempts, and fails, to compile the OCaml bindings by default if
OCaml is installed.

Fixes #8947.
2011-12-03 14:57:49 -08:00
Sepher Liu 11f055ae44 LLVM: Update to 3.0
Closes #8942.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-12-02 11:34:09 -08:00
Trevor Fancher 471288b90a LLVM: Add --jit option
Add --enable-jit to configure_options if --jit is used as an option when
installing LLVM.

Closes #7426.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-12 11:05:57 -07:00
Nathan de Vries 658fdd913b LLVM: Add HEAD and don't force use of GCC 4.2.
Closes #6887.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-08-30 19:17:22 -07:00
ujihisa 3c334209a5 llvm caveats message fix
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-07 16:46:34 -07:00
Adam Vandenberg b474bdb951 llvm: fix audit warnings 2011-06-23 10:15:10 -07:00
Kevin Y. Kim f6838fe7c4 llvm: add --analyzer flag for Clang Static Analyzer
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-20 10:30:20 -07:00
Jonathan Ragan-Kelley 5f61cdc03a Added --all-targets option to LLVM recipe.
Optionally builds LLVM with support for all available targets,
not just the host target backend. (Most relevant: arm.)

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-19 08:07:21 -07:00
Adam Vandenberg 83ed49411f Use ARGV.build_universal? 2011-04-23 08:36:47 -07:00
Birger J. Nordølum e00734bf63 Fixed building LLVM with --shared option.
Fixes #5114.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-14 11:40:03 -07:00
Nathan de Vries db127c21a9 llvm: set-xcode-analyzer
Install the set-xcode-analyzer script for configuring Xcode to use a
non-standard Clang path for static analysis.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-14 11:36:12 -07:00
Mike McQuaid ea5d7eb58b Update to LLVM 2.9 2011-04-07 15:12:35 +01:00
Adam Vandenberg 1fb85efce5 Rewrite caveats to new style.
To make it easier to copy and paste multiline scripts from caveats,
no longer use $ as a prompt marker.
2011-04-04 16:56:47 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Ronaldo M. Ferraz 5388668312 Added a patch to fix load errors in LLVM's shared library for 10.6
LLVM tries to build its shared library using a flat namespace, and
that runs contrary to current practice when building Mac OS X libraries.
This patch fixes the Makefile.rules to use proper libtool/link options.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-01-20 20:45:56 +00:00
Ronaldo M. Ferraz c052e0b4d8 Add shared and rtti options to LLVM.
* Added a --shared option to build LLVM as a shared library.
  (Shouldn't be used with --universal as it will cause the build to fail)

* Added a --rtti option to build LLVM with RTTI information.
  (Can be used, for example, to build LLVM for use with Rubinius)

Closes #3847.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-01-09 19:06:10 +00:00
Joshua Ballanco 5c34d4de12 Added a --universal option to LLVM
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-12-27 21:02:27 +00:00
Adam Vandenberg 9ae7b53e21 llvm - add upgrade caveat 2010-10-07 10:13:59 -07:00
Adam Vandenberg 45517ffc19 llvm - fix md5 2010-10-06 18:52:50 -07:00
Michael Dippery 7352120a08 llvm: Update to v2.8
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-06 07:36:51 -07:00
Adam Vandenberg d0efd9ee94 Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00
Adam Vandenberg 7453ad15b1 llvm - style tweaks 2010-06-05 10:27:11 -07:00
David Höppner 3bb5044afe llvm: update version to 2.7 2010-04-28 22:19:05 +02:00