Commit Graph

8 Commits

Author SHA1 Message Date
panicgh
27f9348ee7
wafHook: always enable parallel building (#136641)
Follow the same pattern as used in the cmake setup hook to assume
`enableParallelBuilding=1` when unset by the user. This makes wafHook
honor `NIX_BUILD_CORES`. See #136368 and #136641.
2021-11-21 16:40:48 -05:00
Janne Heß
cfc4f6347f
wafHook: Don't wrap python2 2020-12-17 19:01:28 +01:00
Matthew Bauer
46f8756aee
Merge pull request #79593 from thefloweringash/wafhook-phases
wafHook: allow overriding phases and disabling of cross flags
2020-03-22 01:59:41 -04:00
Matthew Bauer
dfbe76a681 waf: move binary to $out/bin/
Originally this was just the executable, but this breaks nix-shell
usage. Instead, just do a normal directory.

Fixes #79909
2020-03-06 07:06:01 +01:00
Andrew Childs
03ffda3d1e wafHoook: fix whitespace 2020-02-09 16:13:43 +09:00
Andrew Childs
032d5e7e83 wafHook: make crossFlags optional
The convention of `--cross-compile` and `--cross-execute` is common
enough that it seems like a reasonable default. However there are
projects like mpv which do not use these flags, and rightfully fails
to configure when passed unexpected flags.
2020-02-09 16:03:02 +09:00
Andrew Childs
c6791b2117 wafHook: allow overriding phases
This makes the wafHook a lot closer to the structure of standard hooks
like cmake and ninja.
2020-02-09 16:03:02 +09:00
xbreak
98d9a74223 wafHook: Refactored wafHook to use callPackage (#64250)
This is to enable custom wafHook with custom waf via the override
system.
2019-07-03 15:20:28 -04:00