hhvm / homebrew-hhvm

Official Mac OS X Homebrew formula for HHVM
MIT License
81 stars 22 forks source link

Fix boost compilation - this enforces correct c++ library #26

Closed viatsko closed 7 years ago

viatsko commented 8 years ago

Should fix #17

viatsko commented 8 years ago

Hmmm, so suggestion is to remove :build? I think that people who have boost built with gcc are not getting it from bottles as by default boost is fitting for hhvm

denji commented 8 years ago

:build to install boost for building of source code (only), but these libraries always need hhvm. Apple does not provide boost-libs.

viatsko commented 8 years ago

So it should be

depends_on "boost" => "c++11"

if I understand the Brew syntax correctly?

And same thing should be done to llvm?

denji commented 8 years ago

In square [single element | brackets to denote] an array / use a string representation.

In any case, equally well:
depends_on "llvm" => ["with-clang", "with-libcxx"]
depends_on "boost" => "c++11"
depends_on "llvm" => ["with-clang", "with-libcxx"]
depends_on "boost" => ["c++11"]
viatsko commented 8 years ago

Okay, thank you for your tips, Denis! I owe you beer if you'll be in Amsterdam :+1:

I fixed this PR and created a separate PR for llvm.

jwatzman commented 8 years ago

Can you point me at the brew docs where it says what the c++11 modifier means? It's unclear to me that it means "must build with llvm", which is what we require here.

denji commented 8 years ago

@jwatzman It's unclear to me that it means "must build with llvm", which is what we require here.

otool -L $(which hhvm)
ldd $(which hhvm)
fredemmott commented 7 years ago

Moot: https://github.com/hhvm/homebrew-hhvm/commit/e69dd242cf63337794addb82f9bcc7a3bf3aa351