Giter VIP home page Giter VIP logo

Comments (5)

Issues-translate-bot avatar Issues-translate-bot commented on August 28, 2024

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.

waruqi avatar waruqi commented on August 28, 2024

当目标平台为windows时,产物无 .exe后缀

set_filename 是完整改写文件名,包括后缀,你 set_filename("a") 都把 .exe 去了,当然就没有了。。不想去后缀,得用 set_basename

from xmake.

Issues-translate-bot avatar Issues-translate-bot commented on August 28, 2024

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.

Doekin avatar Doekin commented on August 28, 2024

是我误解相关 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.

Issues-translate-bot avatar Issues-translate-bot commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.