Prefer to use gmake (if available) on non linux OS (#51294)

* Prefer to use gmake (if available) on non linux OS

Fixes #26187

* Small cosmetic changes
pull/51365/head
Anatoly Pugachev 6 years ago committed by Dag Wieers
parent d2eb7a6cc1
commit 88dee04f66

@ -114,7 +114,11 @@ def main():
),
)
# Build up the invocation of `make` we are going to use
make_path = module.get_bin_path('make', True)
# For non-Linux OSes, prefer gmake (GNU make) over make
make_path = module.get_bin_path('gmake', required=False)
if not make_path:
# Fall back to system make
make_path = module.get_bin_path('make', required=True)
make_target = module.params['target']
if module.params['params'] is not None:
make_parameters = [k + '=' + str(v) for k, v in iteritems(module.params['params'])]

Loading…
Cancel
Save