-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_filename
导致 1. mingw 平台 xmake run
找不到构建好的目标 2. windows 平台构建产物无 .exe
后缀
#5120
Comments
Title: |
set_filename 是完整改写文件名,包括后缀,你 |
set_filename completely rewrites the file name, including the suffix. If you use |
是我误解相关 api 的使用了,经测试,set_filename("a.exe") 和 set_basename("a") 都能实现预期效果 而 set_filename("a") 在 mingw 平台上的构建产物为 a.exe ,可能是 llvm-mingw 工具链自身导致的。运行 xmake -vD build ,相关命令为 |
I misunderstood the use of related APIs. After testing, set_filename("a.exe") and set_basename("a") can achieve the expected results. The build product of set_filename("a") on the mingw platform is a.exe, which may be caused by the llvm-mingw tool chain itself. Run xmake -vD build, the relevant command is |
Xmake 版本
xmake v2.9.1+HEAD.0c79f6162
操作系统版本和架构
Windows 10 22H2
描述问题
如果在 target 中调用 set_filename(),那么
error: please run `$xmake build [target]` to build the following targets first
期待的结果
目标产物后缀名正常,且能通过 xmake run 运行
工程配置
xmake create -l c++ -t console helloworld
生成示例工程,添加set_filename("a")
附加信息和错误日志
目标平台为mingw时,xmake build 成功构建后,执行 xmake run -vD 报错如下
The text was updated successfully, but these errors were encountered: