rust/mk
Alex Crichton eeb2f6dde4 mk: Try to fix nightlies again
Looks like the real bug on nightlies is that the `llvm-pass` run-make test is
not actually getting the value of `LLVM_CXXFLAGS` correct. Namely, it's blank!
Now the only change #33093 which actually affected this is that the argument
`$(LLVM_CXXFLAGS_$(2))` was moved up from a makefile rule into the definition of
a variable. Sounds innocuous?

Turns out the variable this was moved into is defined with `:=`, which means
that it's not recursively expanded, which basically means that it's expanded
immediately. Unfortunately part of this expansion involves running
`llvm-config`, which doesn't exist at the start of distcheck build!

This didn't show up on the bots because they run `make` *then* `make check`, and
the first step builds llvm-config so the next time `make` is loaded everything
is available. The distcheck bots, however, run just a plain `distcheck` so
`make` doesn't exist ahead of time. You can see this in action where the
distcheck bots start out with a bunch of "llvm-config not found" error messages.

This commit just changes a few variables to be defined with `=` which
essentially means they're lazily expanded. I did not run a full distcheck
locally, but this makes the initial "llvm-config not found" error messages go
away so I suspect that this is the fix.

Closes #33379
2016-05-06 11:21:42 -07:00
..
cfg test: Move run-make tests into compiletest 2016-04-28 21:46:40 -07:00
clean.mk Added missing argument to 'find' 2015-10-27 23:47:53 +13:00
crates.mk save-analysis: implement JSON dumps 2016-04-25 20:54:00 +12:00
ctags.mk Update the ctags rules and targets. 2015-07-30 06:35:42 +10:00
debuggers.mk Distribute both rust-lldb and rust-gdb everywhere except win-msvc 2016-05-06 03:09:48 +00:00
dist.mk mk: Bootstrap from stable instead of snapshots 2016-04-19 10:56:49 -07:00
docs.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
grammar.mk Revert "mk: fix some undefined variable warnings" 2016-02-01 23:27:04 -08:00
host.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
install.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
llvm.mk rustc_llvm: Tweak how initialization is performed 2016-02-11 11:12:33 -08:00
main.mk Distribute both rust-lldb and rust-gdb everywhere except win-msvc 2016-05-06 03:09:48 +00:00
platform.mk test: Move run-make tests into compiletest 2016-04-28 21:46:40 -07:00
prepare.mk mk: Move disable-jemalloc logic into makefiles 2016-02-25 21:05:59 -08:00
reconfig.mk mk: Bootstrap from stable instead of snapshots 2016-04-19 10:56:49 -07:00
rt.mk Rollup merge of #32686 - mneumann:dragonfly_jemalloc_prefix, r=alexcrichton 2016-04-05 16:43:21 +05:30
rustllvm.mk Implement feature extraction from `TargetMachine` 2016-04-09 00:39:04 +02:00
stage0.mk mk: Bootstrap from stable instead of snapshots 2016-04-19 10:56:49 -07:00
target.mk mk: Bootstrap from stable instead of snapshots 2016-04-19 10:56:49 -07:00
tests.mk mk: Try to fix nightlies again 2016-05-06 11:21:42 -07:00
util.mk mk: Build crates with relative paths to rustc 2015-06-13 01:41:52 +02:00