Skip to content
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

xmake f overwrite the previous config #5041

Closed
rogtino opened this issue May 2, 2024 · 4 comments
Closed

xmake f overwrite the previous config #5041

rogtino opened this issue May 2, 2024 · 4 comments
Labels

Comments

@rogtino
Copy link

rogtino commented May 2, 2024

Xmake 版本

xmake v2.9.1+20240422

操作系统版本和架构

Linux art 6.8.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 28 Apr 2024 15:59:47 +0000 x86_64 GNU/Linux

描述问题

xmake f -m debug 会覆盖之前的xmake f --debugger=gdb
xmake f -m debug --debugger=gdb没有这个问题

期待的结果

xmake f 可以分别设置对应的config

工程配置

add_rules("mode.debug", "mode.release")

target("one")
set_kind("binary")
add_files("src/*.cpp")

附加信息和错误日志

不太确定这是不是bug

@rogtino rogtino added the bug label May 2, 2024
@star-hengxing
Copy link
Contributor

#2401

@waruqi
Copy link
Member

waruqi commented May 2, 2024

每次配置都是全量配置,不支持增量配置

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Each configuration is a full configuration, and incremental configuration is not supported.

@waruqi waruqi closed this as completed May 2, 2024
@SirLynix
Copy link
Member

SirLynix commented May 2, 2024

I supported incremental configuration as a xmake plugin, for those who want it:

xmake plugin --install github:SirLynix/xmake-plugins

which adds a xmake config-update (or xmake cu) command:

xmake f --a=b
xmake config-update --c=d # --a=b --c=d
xmake cu --e=f # --a=b --c=d --e=f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants