build: Set 'NIX_BUILD_HOOK' only if offloading is configured.
authorEric Bavier <bavier@cray.com>
Wed, 11 Oct 2017 03:29:50 +0000 (22:29 -0500)
committerEric Bavier <bavier@member.fsf.org>
Wed, 11 Oct 2017 04:16:07 +0000 (23:16 -0500)
commit7740228e3523e3e0e4c007eb1f1b224575d16574
tree93512f2c59d709595695b9fa8ec3b0a858d198c1
parentc3bece41b7e3cb8dc4a2660ba4a8389148f48c6e
build: Set 'NIX_BUILD_HOOK' only if offloading is configured.

This prevents libstore/build.cc from executing nix/scripts/offload, which is
always created by config.status, when offload support is not enabled.

* build-aux/pre-inst-env.in: Export 'NIX_BUILD_HOOK' only when
configured; unset it otherwise.
build-aux/pre-inst-env.in