Comments (2)
Bot detected the issue body's language is not English, translate it automatically.
In what scenario do you need this feature?
Currently, the intermediate directory structure generated by xmake is unified in the form of plat/arch/mode, such as .deps//windows/x64/release/.... The purpose of the directory structure is to distinguish configs and prevent files from different configs from mixing together. However, in fact, a fixed directory structure cannot achieve this goal (many times plat/arch/mode are fixed, and the difference is other configs) , need to flexibly specify the intermediate directory structure.
Describe possible solutions
Add an API to set the intermediate directory structure; it is best to specify it in the on_config script field, which can achieve some more complex operations, such as calculating a hash as an intermediate directory based on all configs
Describe your alternatives
No response
other information
No response
from xmake.
加了个 build.intermediate_directory
policy,可以禁用生成中间目录。set_policy("build.intermediate_directory", false)
然后,你直接 set_targetdir/set_objectdir/set_dependir
设置就行了。。但只能在 on_load 里面改,on_config 不行,太滞后
from xmake.
Related Issues (20)
- set_kind("object") interfers with before_buildcmd_file resulting in undefined references HOT 3
- xmake require -f 执行后没有强制重新拉取package HOT 10
- xmake qt.widgetapp规则无法配置将日志输出到终端 HOT 5
- Improve find system library files HOT 18
- 有没有办法实现对指定的文件增加编译选项 HOT 3
- MacBook Pro M3 install boost 1.85 failed HOT 3
- .xmake directory always appears next to xmake.lua HOT 5
- 添加在Linux下对Clang-CL的支持 HOT 7
- windows 环境下,生成 CMakeLists.txt 文件,使用 cmake + Ninja + tcc 编译时报错 HOT 11
- xmake将xmake test程序的stdout输出存入/tmp导致/tmp目录被塞满 HOT 13
- Allow wildcards in target:add("files", ...) HOT 1
- 设置本地编译器`gnu-rm`实际变成`gcc` HOT 7
- 在if判断内通过set_config设置qt路径无效 HOT 3
- xmake fails to find host macOS toolchain HOT 5
- 使用远程库构建时updating repositories阶段存在版本管理相关报错导致失败 HOT 3
- xmake test 在windows平台无法正确同时设置多个add_test("test",{run_timeout(1000)}) HOT 9
- gnu-rm下,汇编文件week函数无法被同名文件覆盖 HOT 4
- xrepo 很多 action 都失效了,会提示找不到 xmake.lua HOT 5
- mktemp usage messages during configure HOT 2
- Error-prone xmake behaviour when locating system packages HOT 2
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.