unset MAKEFLAGS before calling buck

Summary:
`make` calls `buck`, who calls `make` again. The last `make` then gets confused
because it wasn't called with `make -n` as it should be for a call of
make-within-make. Unsetting this variable makes `make` forget that it's running
inside `make`.

The main benefit is that it removes annoying spamming of stderr by make/buck
about disabling jobserver.

The submake should also be more parallel now, although if other things are
running in parallel they will ignore any limit set with `-j`.

Reviewed By: jberdine

Differential Revision: D3522156

fbshipit-source-id: 45db21a
master
Jules Villard 9 years ago committed by Facebook Github Bot 7
parent 92801ba1c9
commit 8db2cf0e93

@ -97,7 +97,7 @@ ocaml_unit_test: test_this_build
buck_test: infer buck_test: infer
NO_BUCKD=1 buck clean NO_BUCKD=1 buck clean
NO_BUCKD=1 buck test -j $(NCPU) -L $(NCPU) $(TARGETS_TO_TEST) MAKEFLAGS= NO_BUCKD=1 buck test -j $(NCPU) -L $(NCPU) $(TARGETS_TO_TEST)
NO_BUCKD=1 ./infer/tests/build_systems/build_integration_tests.py NO_BUCKD=1 ./infer/tests/build_systems/build_integration_tests.py
buck_test_xml: infer buck_test_xml: infer

Loading…
Cancel
Save