在Windows上进行(并行作业) [英] Make (Parallel Jobs) on Windows

查看:72
本文介绍了在Windows上进行(并行作业)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows上,哪些设置适用于GNU make并行作业(-j)?

What setup works for GNU make parallel jobs (-j) on Windows?

我尝试使用MinGW make 3.81将外壳设置为cmd.exe,这在创建多个进程时有效,但make失败,并显示等待作业"消息.

I have tried setting the shell to cmd.exe using MinGW make 3.81, this works in creating the multiple processes but make fails with the "waiting for job" message.

这可以工作,什么是最佳设置? (MinGW/Cygwin/???) 有人可以指出我要进行测试的示例吗?

Can this work and what is the best setup? (MinGW / Cygwin / ???) Can someone point me to a working example to test against?

推荐答案

我在Cygwin下使用make -jn从未遇到任何问题.效果不错.我经常将它与Microsoft的cl.exe编译器一起使用.它对我来说是开箱即用的.非常像UNIX,这是一件好事.构建脚本可以很好地移植到Linux和Mac.彻底推荐.

I've never had any promblems using make -jn under Cygwin. It works rather well. I regularly use it with Microsoft's cl.exe compiler. It just works out of the box for me. Very UNIX like, which is a Good Thing™. Build scripts port nicely to Linux and the Mac. Thoroughly recommended.

自从我到达一个5个反斜杠太少但6个反斜杠太多的地方以来,从未喜欢MinGW的产品.叹! (与MinGW hacks有关,以使make AFAIK中允许使用反斜杠分隔的路径名.)

Never liked MinGW make since I got to a place where 5 back-slashes were too few, yet six was too many. Sigh! (To do with MinGW hacks to make backslash separated path names allowable in make AFAIK.)

这篇关于在Windows上进行(并行作业)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆