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

增加自定义其他编译器添加选项文件的选项功能 #4870

Open
2531 opened this issue Mar 23, 2024 · 3 comments
Open

增加自定义其他编译器添加选项文件的选项功能 #4870

2531 opened this issue Mar 23, 2024 · 3 comments

Comments

@2531
Copy link

2531 commented Mar 23, 2024

你在什么场景下需要该功能?

使用非GCC系的编译器(例如TASKING)时,添加选项文件不是使用@file格式,所以无法使用xmake构建。参考 #4855

描述可能的解决方案

希望可以添加配置自定义该选项,然后默认为@file形式。

描述你认为的候选方案

其他信息

No response

@Issues-translate-bot
Copy link

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


Title: Add the option function of customizing other compilers to add option files

In what scenario do you need this feature?

When using a non-GCC compiler (such as TASKING), the added option file does not use the @file format, so it cannot be built using xmake. Reference #4855

Describe possible solutions

I hope you can add configuration to customize this option, and then default to the @file form.

Describe your alternatives

none

other information

No response

@waruqi
Copy link
Member

waruqi commented Mar 24, 2024

这个目前没办法,只能提 pr 给 xmake ,让它内置支持未知 compiler 的处理,目前的 custom toolchain 只能对已知的 compiler 进行自定义,比如 gcc/clang系,msvc, ...

除非后续提供开放式 api 能够完整自定义扩展未知编译器的支持,但这个需要很多的工作量,并且需要花时间去设计 api 暂时没空搞。。

所以你想支持使用未知编译器,要么直接提 pr 过来支持上,要么提 feature request 到 issues,然后耐心等待

@Issues-translate-bot
Copy link

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


There is currently no way to do this. We can only submit pr to xmake so that it has built-in support for unknown compiler processing. The current custom toolchain can only customize known compilers, such as gcc/clang system, msvc,...

Unless an open API is provided in the future that can completely customize and extend the support of unknown compilers, this will require a lot of work and will take time to design the API, which I have no time to do at the moment. .

So if you want to support the use of unknown compilers, you can either directly submit a PR for support, or submit a feature request to issues, and then wait patiently.

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

No branches or pull requests

3 participants