Stream: t-compiler/help

Topic: Building with system LLVM?


osa1 (Apr 11 2020 at 18:07, on Zulip):

IIRC there used to be a line in config.toml for using system LLVM instead of building from source, but I can't find it now (it's been a while since last time I built rustc). Am I misremembering, or is this feature gone now? I was using this for faster builds when building from scratch.

Jonas Schievink (Apr 11 2020 at 18:10, on Zulip):

It's llvm-config

osa1 (Apr 11 2020 at 18:48, on Zulip):

Thanks!

osa1 (Apr 11 2020 at 18:49, on Zulip):

Hmm, it's still building LLVM for some reason. Do I need to set any other fields?

eddyb (Apr 11 2020 at 18:50, on Zulip):

@osa1 what does your config.toml look like?

osa1 (Apr 11 2020 at 18:58, on Zulip):

Ah, sorry, I modified config.toml.example, not config.toml. It's working now, thanks.

eddyb (Apr 11 2020 at 19:00, on Zulip):

heh

osa1 (Apr 11 2020 at 19:11, on Zulip):

OK so not really rustc related, but if anyone know where can I find a pre-built FileCheck executable that'd be helpful. I'm looking at 7.0 and 10.0 tarballs, none of them includes this.

eddyb (Apr 11 2020 at 19:12, on Zulip):

@osa1 what distro? I was looking at Ubuntu the other day and it has everything, just split into a dozen packages

osa1 (Apr 11 2020 at 19:12, on Zulip):

Ubuntu 18.04. I'm currently using the 7.0 tarball from the LLVM web site.

eddyb (Apr 11 2020 at 19:13, on Zulip):

Ubuntu has packages tho

eddyb (Apr 11 2020 at 19:13, on Zulip):

we use them on CI

eddyb (Apr 11 2020 at 19:13, on Zulip):

/me knows because he fought them yesterday

eddyb (Apr 11 2020 at 19:13, on Zulip):

@osa1 just apt-get install llvm-7-tools

eddyb (Apr 11 2020 at 19:14, on Zulip):

@osa1 but also I'd suggest using LLVM 9 nowadays anyway

eddyb (Apr 11 2020 at 19:15, on Zulip):

which would mean llvm-9-dev

eddyb (Apr 11 2020 at 19:15, on Zulip):

(for some reason they flipped the dependency edge https://github.com/rust-lang/rust/pull/70989#issuecomment-612218508)

eddyb (Apr 11 2020 at 19:16, on Zulip):

@osa1 https://packages.ubuntu.com/search?mode=filename&suite=bionic-updates&section=all&arch=any&keywords=FileCheck&searchon=contents

eddyb (Apr 11 2020 at 19:17, on Zulip):

I guess I'm assuming you have bionic-updates

osa1 (Apr 11 2020 at 19:17, on Zulip):

OK after installing llvm-9-dev and pointing to correct llvm-config in config.toml it's building now.

eddyb (Apr 11 2020 at 19:17, on Zulip):

because base bionic stops at LLVM 6: https://packages.ubuntu.com/search?suite=bionic&arch=any&mode=filename&searchon=contents&keywords=FileCheck

eddyb (Apr 11 2020 at 19:17, on Zulip):

@osa1 wheeee

osa1 (Apr 11 2020 at 19:17, on Zulip):

Thanks!

Last update: Sep 28 2020 at 14:15UTC