llvmpy / llvmpy

Originally a github fork of the llvm-py repository from http://www.mdevan.org/llvm-py/index.html updated to work with LLVM 3.x. Since then it has changed significantly with multiple sub-projects.

Home Page:www.llvmpy.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LLVM 3.3 Doesn't compile on OSX Yosemite

nickeubank opened this issue · comments

Hi All,

The QuickStart directions for compiling LLVM 3.3 doesn't work for Yosemite 10.10. The problem -- detailed here: https://github.com/Homebrew/homebrew-versions/issues/453 -- is that the Makefile.rules does a version check, and the grep gets confused by 10.10 (it thinks it's 10.1).

Quoting from the above linked comment:
The error is due to line 574 of llvm3.3 Makefile.rules. There the following happens

DARWIN_VERSION := $(shell echo $(DARWIN_VERSION)| sed -E 's/(10.[0-9]).*/\1/')
To make it work, it must be changed to

DARWIN_VERSION := $(shell echo $(DARWIN_VERSION)| sed -E 's/(10.[0-9]+).*/\1/')

I know LLVM isn't your product, by so long as you're kind enough to put up a Quick Start guide, I think it's worth adding this note.

Thanks for reporting the problem. I have updated the README.