Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
0a3f010b
Commit
0a3f010b
authored
Jul 19, 2015
by
Erik Michaels-Ober
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #765 from sstephenson/detect-llvm35
Improve detecting LLVM 3.5 from Homebrew
parents
b7237690
5cb049e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
bin/ruby-build
+23
-7
No files found.
bin/ruby-build
View file @
0a3f010b
...
@@ -812,12 +812,13 @@ require_llvm() {
...
@@ -812,12 +812,13 @@ require_llvm() {
local
llvm_version
=
"
$1
"
local
llvm_version
=
"
$1
"
if
[
"
$(
uname
-s
)
"
=
"Darwin"
]
&&
[
"
$(
osx_version
)
"
-ge
1010
]
;
then
if
[
"
$(
uname
-s
)
"
=
"Darwin"
]
&&
[
"
$(
osx_version
)
"
-ge
1010
]
;
then
if
[[
"
$RUBY_CONFIGURE_OPTS
"
!=
*
--llvm-
*
]]
;
then
if
[[
"
$RUBY_CONFIGURE_OPTS
"
!=
*
--llvm-
*
]]
;
then
if
[
"
$llvm_version
"
=
"3.2"
]
;
then
case
"
$llvm_version
"
in
3.2
)
package_option ruby configure
--prebuilt-name
=
"llvm-3.2-x86_64-apple-darwin13.tar.bz2"
package_option ruby configure
--prebuilt-name
=
"llvm-3.2-x86_64-apple-darwin13.tar.bz2"
else
;;
local
llvm_prefix
=
"
$(
brew
--prefix
llvm 2>/dev/null
||
true
)
"
3.5
)
local
llvm_config
=
"
$
{
llvm_prefix
}
/bin/llvm-config
"
local
llvm_config
=
"
$
(
locate_llvm
"
$llvm_version
"
)
"
if
[
-
x
"
$llvm_config
"
]
;
then
if
[
-
n
"
$llvm_config
"
]
;
then
package_option ruby configure
--llvm-config
=
"
$llvm_config
"
package_option ruby configure
--llvm-config
=
"
$llvm_config
"
else
else
{
echo
{
echo
...
@@ -828,16 +829,31 @@ require_llvm() {
...
@@ -828,16 +829,31 @@ require_llvm() {
colorize 1
"TO FIX THE PROBLEM"
colorize 1
"TO FIX THE PROBLEM"
echo
": Install Homebrew's llvm package with this"
echo
": Install Homebrew's llvm package with this"
echo
-n
"command: "
echo
-n
"command: "
colorize 4
"brew
install llvm
"
colorize 4
"brew
tap homebrew/versions ; brew install llvm35
"
echo
echo
}
>
&3
}
>
&3
return
1
return
1
fi
fi
fi
;;
esac
fi
fi
fi
fi
}
}
locate_llvm
()
{
local
llvm_version
=
"
$1
"
local
package llvm_config
shopt
-s
nullglob
for
package
in
`
brew list 2>/dev/null |
grep
"^llvm"
`
;
do
llvm_config
=
"
$(
echo
"
$(
brew
--prefix
"
$package
"
)
/bin/llvm-config"
*)
"
if
[
-n
"
$llvm_config
"
]
&&
[[
"
$(
"
$llvm_config
"
--version
)
"
=
"
$llvm_version
"
*
]]
;
then
echo
"
$llvm_config
"
break
fi
done
shopt
-u
nullglob
}
needs_yaml
()
{
needs_yaml
()
{
[[
"
$RUBY_CONFIGURE_OPTS
"
!=
*
--with-libyaml-dir
=
*
]]
&&
[[
"
$RUBY_CONFIGURE_OPTS
"
!=
*
--with-libyaml-dir
=
*
]]
&&
!
use_homebrew_yaml
!
use_homebrew_yaml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment