从 macOS 迁移到 Windows 10 进行开发,在使用 make 的时候发现 make 貌似调用的是 cmd 而非 powershell,请问大家有没有遇到过类似的问题,以及最终如何解决。
make 版本
make --version
GNU Make 4.3
Built for Windows32
发现此问题时使用的 make 规则
clean:
Remove-Item *.table
从 macOS 迁移到 Windows 10 进行开发,在使用 make 的时候发现 make 貌似调用的是 cmd 而非 powershell,请问大家有没有遇到过类似的问题,以及最终如何解决。
make 版本
make --version
GNU Make 4.3
Built for Windows32
发现此问题时使用的 make 规则
clean:
Remove-Item *.table
|
skinnyJul 27, 2021
1
没遇过,你在 PowerShell 下 make 试试呗
|
|
2
```
SHELL := powershell.exe .SHELLFLAGS := -NoProfile -Command ``` GNU Make 可以这样换 shell,Visual Studio 带的 NMake 换不了。 |
|
3
@ZhiyuanLin 感谢 不过问题依然存在 幸好目前的环境不复杂 准备转到 arch 去了
|
|
fuisJul 27, 2021
4
我也尝试过,不过看起来最好的办法是 wsl
|
|
zsh2401Jul 27, 2021
5
essential-build-tools 那套玩意儿,最好还是搞个 wsl 来用,mingw 那一套版本太老了,而且总感觉怪怪的,很臃肿
|
|
ysc3839Jul 27, 2021 via Android
6
怀疑你用的是独立的 GNU make ?个人建议直接用 msys2,make 用的 shell 是 bash 等 Unix shell 。
|