Comments (5)
Bot detected the issue body's language is not English, translate it automatically.
Title: set_filename
results in 1. The mingw platform xmake run
cannot find the built target 2. The windows platform build product has no .exe
suffix
from xmake.
当目标平台为windows时,产物无 .exe后缀
set_filename 是完整改写文件名,包括后缀,你 set_filename("a")
都把 .exe 去了,当然就没有了。。不想去后缀,得用 set_basename
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
When the target platform is windows, the product does not have an .exe suffix
set_filename completely rewrites the file name, including the suffix. If you use set_filename("a")
to remove the .exe, of course it will be gone. . If you don’t want to remove the suffix, you have to use set_basename
from xmake.
是我误解相关 api 的使用了,经测试,set_filename("a.exe") 和 set_basename("a") 都能实现预期效果
而 set_filename("a") 在 mingw 平台上的构建产物为 a.exe ,可能是 llvm-mingw 工具链自身导致的。运行 xmake -vD build ,相关命令为 D:\Applications\Scoop\apps\mingw-mstorsjo-llvm-ucrt\current\bin\x86_64-w64-mingw32-g++ -o build\mingw\x86_64\debug\a build\.objs\xmake-exp\mingw\x86_64\debug\src\main.cpp.obj -m64
,然而输出产物仍为 a.exe
from xmake.
Bot detected the issue body's language is not English, translate it automatically.
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 D:\Applications\Scoop\apps\mingw-mstorsjo-llvm-ucrt\current\bin\x86_64-w64-mingw32-g++ -o build\mingw\x86_64\debug\a build \.objs\xmake-exp\mingw\x86_64\debug\src\main.cpp.obj -m64
, but the output product is still a.exe
from xmake.
Related Issues (20)
- 批量处理target的定义 HOT 8
- xmake自动生成的 compile_commands.json有问题 HOT 3
- macOS下安装报错 pthread not found HOT 2
- Build error using shared link chain with add_package on Linux after install HOT 3
- xmake windows 的安装包内置 7z 太旧,出现解包出额外的 tar 信息 HOT 6
- Package based on xmake doesn't work when changing output naming HOT 4
- 使用export_list后xmake project -k xcode报错 HOT 1
- PowerShell installation script will fail when the TMP path contains fields in 8.3 format HOT 5
- 指定clang-cl编译器,编译出来的始终是32位程序 HOT 13
- xrepo 命令一直无响应 HOT 21
- bash命令行下的多目标补全失败 & 输入错误目标名不报错 HOT 7
- g++ module .o: No such file or directory HOT 18
- With set_toolchains("@cosmocc") : fatal error: string: No such file or directory HOT 1
- find_package fails to find binutils on system HOT 5
- m1芯片导出Xcode,无法运行 HOT 10
- Path with xxx-include not included in pch HOT 7
- `compile_flags` plugin is too selective when filtering flags HOT 4
- 如何方便去掉一些内置的编译参数 HOT 9
- Allow custom intermediate directory layout in dependir/objectir/targetdir HOT 2
- xpack的打包程序不能正确识别中文路径 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake.