Replies: 1 comment 4 replies
-
os.runv("cosmocc", {"--version"}, {shell = true}) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
PumpkinXD
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
是这样的,我搞了个用于构建APE格式程序的xmake模板
最开始的编写和测试是在kde neon下进行的, 没有问题
但我试图在mingw(确切来说是git-bash)下进行测试时发现无法执行,报
error: cannot runv(cosmocc -c -std=c11 -Iinclude -o build\.objs\main.com\unknown\unknown\release\src\main.c.o src\main.c), No such file or directory
使用
xmake -vD
的命令行输出如下我个人的想法是修改内置的on_build的
runv
所传参数,但是我不清楚具体应该如何改动(并且我希望能够只在host为windows的情况下进行改动)(注:
cosmocc/bin/cosmocc
是bash script,我试着直接跑os.run("cosmocc --version")
是跑不通的但os.run("sh cosmocc --version")
是可以的)Beta Was this translation helpful? Give feedback.
All reactions